Include subdomains and preload in HSTS

This commit is contained in:
Alexandre Iooss 2022-01-30 20:00:04 +01:00
parent df7f46425e
commit a719203ee0

View file

@ -45,8 +45,10 @@ ADMINS = [
SESSION_COOKIE_SECURE = not DEBUG
CSRF_COOKIE_SECURE = not DEBUG
# Remember HTTPS for 24h
SECURE_HSTS_SECONDS = 86400
# Remember HTTPS for 1 year
SECURE_HSTS_SECONDS = 31536000
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_HSTS_PRELOAD = True
# Application definition