Skip to content
Snippets Groups Projects

Rename preprod cookies to avoid collisions with prod cookies

Merged Erwan Rouchet requested to merge isolate-dev-cookies into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading