cookie options won't get set
Open
awaiting more info
- Dominant language
- JavaScript
- Stars
- 6.4k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
i use session with mongo store, but the problem is that cookie setting won't get change,
`app.use(
session({
name: "session",
store: store,
secret: process.env.SESSION_SECRET || "",
resave: false,
saveUninitialized: false,
cookie: {
httpOnly: true,
secure: true,
sameSite: "none",
}
})
);`
no matter what the cookie setting is , it always use the default one.
actually when i change the options , cookie option on the database will be save correctly, but cookie will be send with the default options!
Contributor guide
Assessment
This issue has not been assessed yet.