mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-11 19:06:20 +00:00
Use strict sameSite cookies
This commit is contained in:
@@ -36,7 +36,8 @@ app.use(session({
|
||||
store: new FileStore(fileStoreOptions),
|
||||
secret: sessionSecret,
|
||||
resave: true,
|
||||
saveUninitialized: true
|
||||
saveUninitialized: true,
|
||||
cookie: { sameSite: 'strict' }
|
||||
}))
|
||||
app.use((req, res, next) => {
|
||||
const msgs = req.session.messages || []
|
||||
|
||||
Reference in New Issue
Block a user