mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-06-21 22:13:08 +03:00
CSRF in header
CSRF header is needed for a POST request in the Django REST framework.
This commit is contained in:
parent
33eb8fbe25
commit
03e5670c25
|
@ -7,6 +7,7 @@ www.{% raw %}{$DOMAIN_NAME}{% endraw %} {
|
||||||
header_upstream Host {host}
|
header_upstream Host {host}
|
||||||
header_upstream X-Real-IP {remote}
|
header_upstream X-Real-IP {remote}
|
||||||
header_upstream X-Forwarded-Proto {scheme}
|
header_upstream X-Forwarded-Proto {scheme}
|
||||||
|
header_upstream X-CSRFToken {~csrftoken}
|
||||||
}
|
}
|
||||||
log stdout
|
log stdout
|
||||||
errors stdout
|
errors stdout
|
||||||
|
|
Loading…
Reference in New Issue
Block a user