fix: change cookie setting, prevent form trigger twice

This commit is contained in:
wancat committed 2023-09-18 23:37:25 +08:00
1 parent 248355a2f5
commit b8e520152b
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -10,8 +10,8 @@ export default session({
rolling: true,
cookie: {
httpOnly: true,
secure: config.isProduction,
sameSite: 'strict',
secure: false,
sameSite: 'lax',
maxAge: config.sessionMaxAge,
},
store: MongoStore.create({