Skip to content

Commit 482e308

Browse files
Michael Perelc-w
authored andcommitted
Add settings required for SSL
1 parent 8d66e69 commit 482e308

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/app/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@
266266

267267
# Honor the 'X-Forwarded-Proto' header for request.is_secure()
268268
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
269+
SESSION_COOKIE_SECURE = env.bool('SESSION_COOKIE_SECURE', False)
270+
CSRF_COOKIE_SECURE = env.bool('CSRF_COOKIE_SECURE', False)
271+
CSRF_TRUSTED_ORIGINS = env.list('CSRF_TRUSTED_ORIGINS', [])
269272

270273
# Allow all host headers
271274
# ALLOWED_HOSTS = ['*']

0 commit comments

Comments
 (0)