Welcome Guest, Not a member yet? Register   Sign In
CSRF giving problem with ajax
#1

Hello,

I build an application using CI3 and ajax to submit the forms, my CSRF is enabled and regenerating in each post, i use the json response to renew the CSRF values in the csrf inputs of the all forms in the page, all works fine, but some time i giving the blessed error "An error was encoutered. Your request is not allowed" right in the first submit (in this time the csrf input is write right in the html), well the funny is, after the time that the csrf token expire (for what i see) all turns work again without the csrf error, but the most strange is that not even reloading the page, cleaning all the browser and session data (using DB to store the session) it works, just sit down and say: i not will work now, wait the csrf token expire!

Disabling the csrf all turns to work (as expected) Dodgy.

Well I tried some solutions but nothing works, someone please light me!

Very grateful!
Reply


Messages In This Thread
CSRF giving problem with ajax - by tancredolt - 05-02-2015, 09:52 PM
RE: CSRF giving problem with ajax - by prabhakar - 05-03-2015, 06:25 AM
RE: CSRF giving problem with ajax - by PaulD - 05-04-2015, 09:06 AM
RE: CSRF giving problem with ajax - by matbeard - 05-06-2015, 07:20 AM
RE: CSRF giving problem with ajax - by tancredolt - 05-29-2015, 12:45 AM
RE: CSRF giving problem with ajax - by techbat - 05-29-2015, 05:56 AM
RE: CSRF giving problem with ajax - by kintech - 09-30-2019, 05:16 AM
RE: CSRF giving problem with ajax - by albertleao - 09-30-2019, 08:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB