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

@csrf_excempt does not work on @app.route #50

Open
alfonsrv opened this issue Nov 25, 2024 · 1 comment
Open

@csrf_excempt does not work on @app.route #50

alfonsrv opened this issue Nov 25, 2024 · 1 comment

Comments

@alfonsrv
Copy link

Trying to set @csrf_excempt (from django.views.decorators.csrf import csrf_exempt) on a view decorated with @app.route does not work as expected – CSRF-Validation is still happening for POST requests.

@sover02
Copy link

sover02 commented Nov 25, 2024

Had the same issue; I ended up implementing the csrf token for non API views.

API views don't seem to have the issue unless you implement Django's session auth into them.

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

No branches or pull requests

2 participants