Add secure attribute to cookies

This commit is contained in:
Christopher C. Wells 2021-07-31 05:35:50 -07:00 committed by Christopher Charbonneau Wells
parent eac0942acd
commit d9f6c44f59
1 changed files with 7 additions and 0 deletions

View File

@ -269,6 +269,13 @@ AXES_FAILURE_LIMIT = 5
ROLLING_SESSION_REFRESH = 86400
# Security
# See https://docs.djangoproject.com/en/3.2/topics/http/sessions/#settings
# See https://docs.djangoproject.com/en/3.2/ref/csrf/#settings
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
# Set default auto field for models.
# See https://docs.djangoproject.com/en/3.2/releases/3.2/#customizing-type-of-auto-created-primary-keys