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:
RemiRigal
2023-10-18 17:05:22 +02:00
committed by GitHub
parent e2771a3011
commit c84ca43074

View File

@@ -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({