Skip to content

Commit

Permalink
fix: secure session cookie (#2308)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCatLady committed Dec 8, 2021
1 parent 88a8c1a commit 7f330af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ app
saveUninitialized: false,
cookie: {
maxAge: 1000 * 60 * 60 * 24 * 30,
httpOnly: true,
sameSite: true,
secure: 'auto',
},
store: new TypeormStore({
cleanupLimit: 2,
Expand Down

0 comments on commit 7f330af

Please sign in to comment.