Add secure flag to express-session cookies
This commit is contained in:
parent
06ff023047
commit
4ea9c4f98d
|
@ -120,7 +120,7 @@ exports.expressConfigure = function (hook_name, args, cb) {
|
|||
}
|
||||
|
||||
args.app.sessionStore = exports.sessionStore;
|
||||
args.app.use(sessionModule({secret: exports.secret, store: args.app.sessionStore, resave: true, saveUninitialized: true, name: 'express_sid' }));
|
||||
args.app.use(sessionModule({secret: exports.secret, store: args.app.sessionStore, resave: true, saveUninitialized: true, name: 'express_sid', proxy: true, cookie: { secure: true }}));
|
||||
|
||||
args.app.use(cookieParser(settings.sessionKey, {}));
|
||||
|
||||
|
|
Loading…
Reference in New Issue