Fix session cookie, hopefully

This commit is contained in:
Evert Prants 2019-02-12 22:04:16 +02:00
parent bc36560f3f
commit ef4d2ecb0c
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -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) => {