From 032721083a5b13a9637fff9bd6512c325d06871b Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Sun, 28 Apr 2019 12:30:39 +0200 Subject: [PATCH] fix: Session cookie should set path to baseUriPath --- lib/middleware/session.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/middleware/session.js b/lib/middleware/session.js index 70126245e3..34cf50d097 100644 --- a/lib/middleware/session.js +++ b/lib/middleware/session.js @@ -7,5 +7,6 @@ module.exports = function(config) { name: 'unleash-session', keys: [config.secret], maxAge: config.sessionAge, + path: config.baseUriPath === '' ? '/' : config.baseUriPath, }); };