Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way to add global headers or parameters #56

Open
carlosdoub opened this issue Jun 29, 2023 · 0 comments
Open

A way to add global headers or parameters #56

carlosdoub opened this issue Jun 29, 2023 · 0 comments

Comments

@carlosdoub
Copy link

carlosdoub commented 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.

@carlosdoub carlosdoub changed the title A way to add global headers A way to add global headers or parameters Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant