-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
The CSRF header name needs to be configurable #1190
Comments
You can just overwrite this template with your own template in ninja/templates/ninja/swagger_cdn.html and add your custom logic (e.g. access your settings) |
@Speedy1991 I have added my own template and its not pulling from it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We use a different header name than
X-CSRFToken
and causes testing via swagger-ui to fail against our api.Either use the django setting or provide a way to override.
Code in question is
django-ninja/ninja/templates/ninja/swagger_cdn.html
Line 28 in c6d44b6
The text was updated successfully, but these errors were encountered: