Skip to content

Commit 470371c

Browse files
committed
chore(passport): set default CSRF_COOKIE_SECURE false
1 parent a919d9b commit 470371c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rootfs/api/settings/production.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
'security.W004',
3232
'security.W008',
3333
'security.W012',
34+
'security.W016',
3435
]
3536

3637
CONN_MAX_AGE = 60 * 3
@@ -159,7 +160,7 @@
159160
CSRF_COOKIE_SAMESITE = None
160161
SECURE_CONTENT_TYPE_NOSNIFF = True
161162
SECURE_BROWSER_XSS_FILTER = True
162-
CSRF_COOKIE_SECURE = bool(strtobool(os.environ.get('CSRF_COOKIE_SECURE', 'true')))
163+
CSRF_COOKIE_SECURE = bool(strtobool(os.environ.get('CSRF_COOKIE_SECURE', 'false')))
163164
SESSION_COOKIE_SECURE = bool(strtobool(os.environ.get('SESSION_COOKIE_SECURE', 'false')))
164165

165166
# Honor HTTPS from a trusted proxy

0 commit comments

Comments
 (0)