diff --git a/lib/middleware/session.js b/lib/middleware/session.js index 2e0d495ee0..5bcbf574c6 100644 --- a/lib/middleware/session.js +++ b/lib/middleware/session.js @@ -7,7 +7,7 @@ module.exports = function(config) { name: 'unleash-session', keys: [config.secret], maxAge: config.sessionAge, - secureProxy: !!config.secureHeaders, + secure: !!config.secureHeaders, path: config.baseUriPath === '' ? '/' : config.baseUriPath, }); diff --git a/package.json b/package.json index 07441ab35f..c76517bd2e 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "async": "^3.1.0", "compression": "^1.7.3", "cookie-parser": "^1.4.4", - "cookie-session": "^2.0.0-beta.3", + "cookie-session": "^2.0.0-rc.1", "db-migrate": "0.11.11", "db-migrate-pg": "^1.2.2", "db-migrate-shared": "^1.2.0", diff --git a/yarn.lock b/yarn.lock index 2f2dba9bd1..e1626fa8c1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1184,7 +1184,7 @@ cookie-parser@^1.4.4: cookie "0.4.0" cookie-signature "1.0.6" -cookie-session@^2.0.0-beta.3: +cookie-session@^2.0.0-rc.1: version "2.0.0-rc.1" resolved "https://registry.yarnpkg.com/cookie-session/-/cookie-session-2.0.0-rc.1.tgz#66fa03f26e5873d681d70f14bff5e48a94c53d37" integrity sha512-zg80EsLe7S1J4y0XxV7SZ8Fbi90ZZoampuX2bfYDOvJfc//98sSlZC41YDzTTjtVbeU1VlVdBbldXOOyi5xzEw==