Welcome Guest, Not a member yet? Register   Sign In
$config['csrf_protection'] = TRUE; 'The action you have requested is not allowed.'
#1

[eluser]Unknown[/eluser]
Hi guys as you can see from the title i have a problem with a submit form in a CI view.
I have a form that submit some data to a database and to a txt file,i develop this in a locahost and everything goes fine.
After move all to a webserver for the final step of testing i get an error when i try to send the data with the form.

the error:

The action you have requested is not allowed.

the strange thing it's that with firefox everything goes well,i can insert all into the db and i dont see any kind of error.

If i disable : $config['csrf_protection'] = TRUE; (->FALSE) in config.php everything works,in chrome too.
So you know a solution for that? i cant disable csrf protection in my final relase.


#2

[eluser]Aken[/eluser]
Check to make sure your sessions and/or cookies are being set properly. Live environments often require different config options than local.
#3

[eluser]Igor Couto[/eluser]
Please note that there is a discussion on this topic here - with some solutions that may be applicable:

http://ellislab.com/forums/viewthread/205693/
#4

[eluser]InsiteFX[/eluser]
Eric Barnes - CSRF and Cookies




Theme © iAndrew 2016 - Forum software by © MyBB