mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-23 06:49:37 +02:00
feat: Set SESSION_COOKIE_SAMESITE to 'Lax' for improved security
This commit is contained in:
parent
670e499d8f
commit
2713b3640f
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ USE_TZ = True
|
|||
unParsedFrontenedUrl = getenv('FRONTEND_URL', 'http://localhost:3000')
|
||||
FRONTEND_URL = unParsedFrontenedUrl.translate(str.maketrans('', '', '\'"'))
|
||||
|
||||
SESSION_COOKIE_SAMESITE = None
|
||||
SESSION_COOKIE_SAMESITE = 'Lax'
|
||||
|
||||
SESSION_COOKIE_SECURE = FRONTEND_URL.startswith('https')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue