Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
kir4che committed Jan 21, 2024
1 parent d664201 commit d113b2d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions server/dist/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/dist/app.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions server/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ app.use(
saveUninitialized: true,
cookie: {
httpOnly: false,
secure: false, // true: 只有 https 才能使用 cookie
sameSite: true,
maxAge: 8 * 60 * 60 * 1000, // 8 hours
secure: true, // true: 只有 https 才能使用 cookie
sameSite: false,
},
})
)
Expand Down

0 comments on commit d113b2d

Please sign in to comment.