Setting csrf_regenerate as TRUE |
Thanks Martin for your help. I am posting the solution in case someone needs it:
PHP Code: $('#department_id').change(function() { 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.
(07-31-2017, 12:19 AM)june123 Wrote: Like this, other drop-down boxes are filled up through ajax call. 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 |
Welcome Guest, Not a member yet? Register Sign In |