mirror of
https://github.com/sct/overseerr.git
synced 2025-09-30 15:40:40 +02:00
feat: update SameSite policy of session cookie to Lax (#3650)
* update session cookie samesite policy to lax * set cookie samesite policy based on csrf protection setting
This commit is contained in:
@@ -152,7 +152,7 @@ app
|
||||
cookie: {
|
||||
maxAge: 1000 * 60 * 60 * 24 * 30,
|
||||
httpOnly: true,
|
||||
sameSite: true,
|
||||
sameSite: settings.main.csrfProtection ? 'strict' : 'lax',
|
||||
secure: 'auto',
|
||||
},
|
||||
store: new TypeormStore({
|
||||
|
Reference in New Issue
Block a user