Fixing cookie settings for CSRF and auth token

This commit is contained in:
Wayne Witzel III
2017-07-25 10:11:11 -04:00
parent 0cf376ca6f
commit f6d59409de
2 changed files with 4 additions and 1 deletions

View File

@@ -189,6 +189,9 @@ JOB_EVENT_MAX_QUEUE_SIZE = 10000
# Disallow sending session cookies over insecure connections
SESSION_COOKIE_SECURE = True
# Do not allow non-browser clients to read the CSRF cookie.
CSRF_COOKIE_HTTPONLY = True
# Disallow sending csrf cookies over insecure connections
CSRF_COOKIE_SECURE = True