• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ajax with CSRF causing a Double Post to controller

(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.

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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.