mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
parent
973b9e8d0a
commit
a4f2afa539
2 changed files with 6 additions and 0 deletions
5
.changeset/bright-bobcats-eat.md
Normal file
5
.changeset/bright-bobcats-eat.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@hyperdx/api": patch
|
||||
---
|
||||
|
||||
fix: Add samesite to cookies for better security
|
||||
|
|
@ -26,6 +26,7 @@ const sess: session.SessionOptions & { cookie: session.CookieOptions } = {
|
|||
secret: config.EXPRESS_SESSION_SECRET,
|
||||
cookie: {
|
||||
secure: false,
|
||||
sameSite: 'lax',
|
||||
maxAge: 1000 * 60 * 60 * 24 * 30, // 30 days
|
||||
},
|
||||
rolling: true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue