Skip to content

Commit ff892d4

Browse files
authored
Merge pull request doccano#350 from CatalystCode/enhancement/ssl-settings
Enhancement/Add settings required for SSL
2 parents 44f1648 + 482e308 commit ff892d4

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
@@ -270,6 +270,9 @@
270270

271271
# Honor the 'X-Forwarded-Proto' header for request.is_secure()
272272
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
273+
SESSION_COOKIE_SECURE = env.bool('SESSION_COOKIE_SECURE', False)
274+
CSRF_COOKIE_SECURE = env.bool('CSRF_COOKIE_SECURE', False)
275+
CSRF_TRUSTED_ORIGINS = env.list('CSRF_TRUSTED_ORIGINS', [])
273276

274277
# Allow all host headers
275278
# ALLOWED_HOSTS = ['*']

0 commit comments

Comments
 (0)