Skip to content
Snippets Groups Projects
Commit 01fba24a authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Rename preprod cookies to avoid collisions with prod cookies

parent 882d876f
No related branches found
No related tags found
No related merge requests found
......@@ -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