Skip to content
Snippets Groups Projects
Commit ec869d4e authored by florimondmanca's avatar florimondmanca
Browse files

update security settings - disable https in dev, enforce in prod

parent cf8b3dfb
No related branches found
No related tags found
No related merge requests found
......@@ -157,11 +157,6 @@ DATABASES = {
default='postgres://postgres:postgres@localhost:5432/oser_backend_db'),
}
# Security
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
SECURE_BROWSER_XSS_FILTER = True
# Authentication
AUTH_USER_MODEL = 'users.User'
......
......@@ -13,3 +13,9 @@ ALLOWED_HOSTS = [
'oser-backend-staging.herokuapp.com',
'oser-cs.fr',
]
# Security
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
SECURE_BROWSER_XSS_FILTER = True
SECURE_SSL_REDIRECT = True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment