Welcome Guest, Not a member yet? Register   Sign In
ajax post csrf problem 403 error
#2

Hi,

Set

<pre>$config['csrf_regenerate'] = FALSE;</pre>

in your application/config/config.php file. The reason your AJAX fails the second time is because the CSRF token regenerates with each new page request, causing the old token to become invalid.
Reply


Messages In This Thread
ajax post csrf problem 403 error - by arabgenius - 04-16-2017, 02:42 PM
RE: ajax post csrf problem 403 error - by GGitzOle - 04-17-2017, 01:52 AM
RE: ajax post csrf problem 403 error - by PaulD - 04-17-2017, 02:31 AM
RE: ajax post csrf problem 403 error - by PaulD - 04-17-2017, 03:29 AM
RE: ajax post csrf problem 403 error - by PaulD - 04-17-2017, 05:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB