Welcome Guest, Not a member yet? Register   Sign In
csrf, ajax and form
#1

(This post was last modified: 08-05-2017, 05:16 AM by theedo.)

Hi people, as I wrote in the thread subject I'm here to ask something about the csrf_regenerate.

The first question is:
is the csrf_regenerate needed? 

In my website I set csrf_regenerate = TRUE and in each view I inserted an hidden input and, when the ajax is completed, I refresh the value of this input with the php response. But there is a problem. Instead if I have two tabs of browser opened on the same page and I do an ajax request, on the page that I see all will work fine, but if I switch to the other tab I get the 403 error on each ajax request.

So I don't know how to fix that, and for that I was thinking: the csrf_regenerate is really important?
Reply


Messages In This Thread
csrf, ajax and form - by theedo - 08-05-2017, 05:15 AM
RE: csrf, ajax and form - by InsiteFX - 08-05-2017, 05:29 AM
RE: csrf, ajax and form - by theedo - 08-05-2017, 06:16 AM
RE: csrf, ajax and form - by Shawn - 08-09-2017, 12:20 PM
RE: csrf, ajax and form - by InsiteFX - 08-05-2017, 09:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB