Skip to content
Snippets Groups Projects
Commit cd86ec60 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Merge branch 'isolate-dev-cookies' into 'master'

Rename preprod cookies to avoid collisions with prod cookies

See merge request !575
parents 72e63dff f8f45abb
No related branches found
Tags 1.6.5
1 merge request!575Rename preprod cookies to avoid collisions with prod cookies
......@@ -387,12 +387,12 @@ def samesite(name, default):
return value
CSRF_COOKIE_NAME = 'arkindex.csrf'
CSRF_COOKIE_NAME = os.environ.get('CSRF_COOKIE_NAME', 'arkindex.csrf')
CSRF_TRUSTED_ORIGINS = env2list('CSRF_TRUSTED_ORIGINS')
CSRF_COOKIE_DOMAIN = os.environ.get('COOKIE_DOMAIN')
CSRF_COOKIE_SAMESITE = samesite('CSRF', 'lax')
SESSION_COOKIE_NAME = 'arkindex.auth'
SESSION_COOKIE_NAME = os.environ.get('SESSION_COOKIE_NAME', 'arkindex.auth')
SESSION_COOKIE_DOMAIN = os.environ.get('COOKIE_DOMAIN')
SESSION_COOKIE_SAMESITE = samesite('SESSION', 'lax')
# Required for authentication over websockets
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment