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

Support CSRF Token in AJAX requests #12

Open
tmfink opened this issue Jul 25, 2014 · 0 comments
Open

Support CSRF Token in AJAX requests #12

tmfink opened this issue Jul 25, 2014 · 0 comments

Comments

@tmfink
Copy link
Contributor

tmfink commented Jul 25, 2014

Currently, a JS snippet is inserted that rewrites forms to include the CSRF token. However, this does not include the token in AJAX requests (because they are done via JS, not an HTML "form" element.

In order to support this, JS would need to be inserted at the top of the page to override all JS functions that support requests.

https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant