Welcome Guest, Not a member yet? Register   Sign In
Setting csrf_regenerate as TRUE
#12

(07-31-2017, 12:19 AM)june123 Wrote: Like this, other drop-down boxes are filled up through ajax call. 

Now when I try to submit the form, again "Action you have requested is not allowed" message comes up. The hidden csrf field generated by form_open doesnt get updated with the latest csrf token value.

Just like with the AJAX call you will need to update the CSRF token field and value with the latest CSRF.
You can append a hidden field with the new value, and remove the old one when you hit the submit button
Reply


Messages In This Thread
Setting csrf_regenerate as TRUE - by june123 - 07-27-2017, 04:45 AM
RE: Setting csrf_regenerate as TRUE - by june123 - 07-27-2017, 08:27 AM
RE: Setting csrf_regenerate as TRUE - by spjonez - 07-27-2017, 06:21 AM
RE: Setting csrf_regenerate as TRUE - by june123 - 07-28-2017, 01:36 AM
RE: Setting csrf_regenerate as TRUE - by june123 - 07-28-2017, 06:15 AM
RE: Setting csrf_regenerate as TRUE - by june123 - 07-28-2017, 11:50 PM
RE: Setting csrf_regenerate as TRUE - by june123 - 07-31-2017, 12:19 AM
RE: Setting csrf_regenerate as TRUE - by Martin7483 - 07-31-2017, 12:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB