Fix session cookie, hopefully
This commit is contained in:
parent
bc36560f3f
commit
ef4d2ecb0c
@ -28,7 +28,8 @@ app.use(session({
|
||||
secret: config.server.session_secret,
|
||||
store: new SessionStore(config.redis),
|
||||
resave: false,
|
||||
saveUninitialized: true
|
||||
saveUninitialized: true,
|
||||
cookie: { secure: process.env.NODE_ENV !== 'development' }
|
||||
}))
|
||||
|
||||
app.use((req, res, next) => {
|
||||
|
Reference in New Issue
Block a user