Skip to content

Commit b6469d7

Browse files
Merge pull request #5815 from uktrade/feature/TET-881-force-https
Tell browsers to use https instead of http for 1 hour
2 parents 3783b7a + 48b2f46 commit b6469d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/settings/common.py

+4
Original file line numberDiff line numberDiff line change
@@ -747,3 +747,7 @@ def _add_hawk_credentials(id_env_name, key_env_name, scopes):
747747

748748
S3_LOCAL_ENDPOINT_URL = env("S3_LOCAL_ENDPOINT_URL", default='')
749749
ENABLE_CONTACT_CONSENT_INGEST = env("ENABLE_CONTACT_CONSENT_INGEST", default=False)
750+
751+
# Initially set to 1 hour, to increase once confirmed it's successful.
752+
SECURE_HSTS_SECONDS = 3600
753+
SECURE_HSTS_INCLUDE_SUBDOMAINS = True

0 commit comments

Comments
 (0)