mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: set cookie to secure and strict
This commit is contained in:
1 parent
ca2a40341c
commit
db16413754
3 files changed
+51
-38
No files matched your search
@@ -9,9 +9,10 @@ export default session({
|
||||
saveUninitialized: false,
|
||||
rolling: true,
|
||||
cookie: {
|
||||
domain: config.domain,
|
||||
httpOnly: true,
|
||||
secure: false,
|
||||
sameSite: 'lax',
|
||||
secure: config.protocol === 'https:',
|
||||
sameSite: 'strict',
|
||||
maxAge: config.sessionMaxAge,
|
||||
},
|
||||
store: MongoStore.create({
|
||||
|
||||
Reference in new issue
Block a user