Skip to content

Commit

Permalink
feat: update SameSite policy of session cookie to Lax (#3650)
Browse files Browse the repository at this point in the history
* update session cookie samesite policy to lax

* set cookie samesite policy based on csrf protection setting
  • Loading branch information
RemiRigal authored Oct 18, 2023
1 parent e2771a3 commit c84ca43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit c84ca43

Please sign in to comment.