You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thank you for providing this very unknown and useful library.
I am trying to add headers for CSRF security to the system I'm developing. I found that adding global headers to the jQuery Ajax requests is possible through $.ajaxSetup().
Do you think there is a way to add headers to the $.redirect() calls (only POST requests)? Maybe modifying the code of the library a little. Or should I add them manually to every call of the redirect library?
Thanks
Edit: The CSRF fields can also be parameters of the request and not request headers.
The text was updated successfully, but these errors were encountered:
carlosdoub
changed the title
A way to add global headers
A way to add global headers or parameters
Jun 29, 2023
Hello,
First, thank you for providing this very unknown and useful library.
I am trying to add headers for CSRF security to the system I'm developing. I found that adding global headers to the jQuery Ajax requests is possible through $.ajaxSetup().
Do you think there is a way to add headers to the $.redirect() calls (only POST requests)? Maybe modifying the code of the library a little. Or should I add them manually to every call of the redirect library?
Thanks
Edit: The CSRF fields can also be parameters of the request and not request headers.
The text was updated successfully, but these errors were encountered: