CodeIgniter 3 - 403 Forbidden on POST from jQuery.ajax() asynchronous request |
I generally use ajaxPrefilter(https://api.jquery.com/jquery.ajaxPrefilter/) in my projects:
Code: $.ajaxPrefilter(function (options, originalOptions, jqXHR) { I just need to define the values csrf_name, csrf in the header for example, that all requests from my system are sent with this security token. |
Messages In This Thread |
CodeIgniter 3 - 403 Forbidden on POST from jQuery.ajax() asynchronous request - by josephgodwinke - 04-12-2021, 02:53 PM
RE: CodeIgniter 3 - 403 Forbidden on POST from jQuery.ajax() asynchronous request - by kleber - 04-19-2021, 06:45 AM
RE: CodeIgniter 3 - 403 Forbidden on POST from jQuery.ajax() asynchronous request - by josephgodwinke - 04-20-2021, 12:39 AM
RE: CodeIgniter 3 - 403 Forbidden on POST from jQuery.ajax() asynchronous request - by kleber - 04-20-2021, 08:35 AM
|