Fix infinite redirections in production
This commit is contained in:
parent
674ab5d288
commit
d7199827da
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,9 @@ DATABASES = {
|
|||
|
||||
SECURE_SSL_REDIRECT = True
|
||||
|
||||
# See https://docs.djangoproject.com/en/2.2/ref/settings/#secure-proxy-ssl-header
|
||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
|
||||
SESSION_COOKIE_SECURE = True
|
||||
|
||||
CSRF_COOKIE_SECURE = True
|
||||
|
|
Loading…
Reference in a new issue