Skip to content

Commit 88d1eab

Browse files
committed
PPHA-682: Implement preload and subdomains for HSTS
1 parent cf754d7 commit 88d1eab

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lung_cancer_screening/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ def pem_key_env(key, file_path_key=None):
289289
# Additional security settings for production
290290
if not DEBUG:
291291
SECURE_HSTS_SECONDS = 31536000
292+
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
293+
SECURE_HSTS_PRELOAD = True
292294
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
293295
SECURE_SSL_REDIRECT = False
294296
SESSION_COOKIE_SECURE = True

0 commit comments

Comments
 (0)