Fix infinite redirections in production

This commit is contained in:
PCoder 2022-09-25 21:21:42 +05:30
parent 674ab5d288
commit d7199827da
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