CSRF in header

CSRF header is needed for a POST request in the Django REST framework.
This commit is contained in:
HP Bruna 2018-11-07 21:54:52 +01:00 committed by GitHub
parent 33eb8fbe25
commit 03e5670c25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,7 @@ www.{% raw %}{$DOMAIN_NAME}{% endraw %} {
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-Proto {scheme}
header_upstream X-CSRFToken {~csrftoken}
}
log stdout
errors stdout