Skip to content

Commit

Permalink
same site
Browse files Browse the repository at this point in the history
  • Loading branch information
wslyvh committed Oct 29, 2024
1 parent 174f542 commit 9cccdfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devcon-api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const sessionConfig: SessionOptions = {

if (SERVER_CONFIG.NODE_ENV === 'production') {
app.set('trust proxy', 1) // for secure cookies and when using HTTPS: https://expressjs.com/en/guide/behind-proxies.html
sessionConfig.cookie = { ...sessionConfig.cookie, secure: true }
sessionConfig.cookie = { ...sessionConfig.cookie, secure: true, sameSite: 'none' }
}
app.use(session(sessionConfig))

Expand Down

0 comments on commit 9cccdfe

Please sign in to comment.