Skip to content

Fixed CSRF problem with AJAX POST requests - #95

Merged
1 commit merged into
getsentry:masterfrom
treyhunner:aa9867886b019f3e237fde4705b29d437a1712ec
Feb 22, 2011
Merged

1 commit merged into
getsentry:masterfrom
treyhunner:aa9867886b019f3e237fde4705b29d437a1712ec

Conversation

@treyhunner

Copy link
Copy Markdown
Contributor

After the new security release, Django now requires that CSRF tokens be sent in all POST requests, even AJAX ones.

This commit uses the example jQuery code in the documentation to add the CSRF token to all jQuery AJAX requests.

This fixes issue #93.

Previously Django excluded AJAX requests from CSRF checks so this is not a problem for older versions of Django (before February 2011).

@github-actions github-actions Bot locked and limited conversation to collaborators Dec 24, 2020
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant