Welcome Guest, Not a member yet? Register   Sign In
Ajax with CSRF causing a Double Post to controller
#5

(10-01-2018, 10:52 AM)jreklund Wrote: Personally I have disabled regeneration of the CSRF so it will be the same. So that I don't need to get a new one back from the Codeigniter. As the user stays on the same page doing multiple AJAX.
PHP Code:
$config['csrf_regenerate'] = FALSE

But this ain't the cause of your problem. Have you tried a different version of your Javascript library? If you are using one.

Hi jreklund,

I have not tried the regenerate = false, but I am not too worried about posting multiple times.

I have not tried to change my jQuery library, currently using 2.2.4. I might get a chance to try changing it tomorrow, but it is unlikely. Too much on to be sure.
Reply


Messages In This Thread
RE: Ajax with CSRF causing a Double Post to controller - by Chroma - 10-01-2018, 12:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB