Add security option in production
This commit is contained in:
parent
3741436368
commit
d069380e80
|
@ -19,4 +19,11 @@ AUTH_PASSWORD_VALIDATORS = [
|
|||
{
|
||||
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
|
||||
},
|
||||
]
|
||||
]
|
||||
|
||||
# Be sure to force https for csrf cookie
|
||||
CSRF_COOKIE_SECURE = True
|
||||
|
||||
# Same for session cookie
|
||||
SESSION_COOKIE_SECURE = True
|
||||
|
||||
|
|
Loading…
Reference in New Issue