Compare commits

...

2 Commits

Author SHA1 Message Date
PCoder db54e3c3d7 Merge remote-tracking branch 'ungleich-public/master' 2022-09-26 10:48:17 +05:30
PCoder d7199827da Fix infinite redirections in production 2022-09-25 21:21:42 +05:30
1 changed files with 3 additions and 0 deletions

View File

@ -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