I am building a site with codeigniter and CSRF is set to true and is working perfectly. I have overidden CSRF to switch it off on one form just to cater for the particular details of that complicated example. However, the login form (with public access) has CSRF enabled and I do not want to override the CSRF for that form for obvious reasons.
The problem is that when I try to access the login form without the www in the domain (and this is not 'normal' or wanted but people do type in URL's without the www so I thought I should cover it), the form appears like normal, but the CSRF kicks in and denies access when the form is submitted.
I am not using any .htaccess files for the public pages, want to keep using the CSRF, but do not want users have problems if they happen to type in the url without the www.
Does anyone have any suggestions about what I can do about this?
Thank you in advance,
Paul