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
pull/3743/head
RemiRigal 8 months ago committed by Mike Kao
parent 8d9c808e90
commit 628a3d36f8

@ -166,7 +166,7 @@ app
cookie: {
maxAge: 1000 * 60 * 60 * 24 * 30,
httpOnly: true,
sameSite: true,
sameSite: settings.main.csrfProtection ? 'strict' : 'lax',
secure: 'auto',
},
store: new TypeormStore({

Loading…
Cancel
Save