We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
master
SessionAuthentication
CSRF_COOKIE_NAME
The action should be completed successfully.
The action fails with HTTP status 403, and the message CSRF Failed: CSRF token missing or incorrect..
CSRF Failed: CSRF token missing or incorrect.
csrf.js has the cookie name hardcoded: https://github.com/tomchristie/django-rest-framework/blob/bb56ca46ed6c07db0146dbdc61c672ff25f127de/rest_framework/static/rest_framework/js/csrf.js#L36. It should instead get the cookie name from settings.
The text was updated successfully, but these errors were encountered:
9d9658f
No branches or pull requests
Checklist
master
branch of Django REST framework.Steps to reproduce
SessionAuthentication
for all views, or a single view.CSRF_COOKIE_NAME
to a non-default value.SessionAuthentication
via the Browseable API.Expected behavior
The action should be completed successfully.
Actual behavior
The action fails with HTTP status 403, and the message
CSRF Failed: CSRF token missing or incorrect.
.csrf.js has the cookie name hardcoded: https://github.com/tomchristie/django-rest-framework/blob/bb56ca46ed6c07db0146dbdc61c672ff25f127de/rest_framework/static/rest_framework/js/csrf.js#L36. It should instead get the cookie name from settings.
The text was updated successfully, but these errors were encountered: