From 0082a509afe1fd6eaea28ec5af901deeac384d6a Mon Sep 17 00:00:00 2001 From: Joshua Kiwiet-Pantaleoni Date: Tue, 2 Jul 2019 14:31:38 -0700 Subject: [PATCH] AUTH-217 set path option for kvls cookie --- server/util/syncCookie.js | 2 +- src/util/KvAuth0.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/util/syncCookie.js b/server/util/syncCookie.js index cc92810d2d5..557af54f2fb 100644 --- a/server/util/syncCookie.js +++ b/server/util/syncCookie.js @@ -10,7 +10,7 @@ function getSyncCookie(req) { } function setSyncCookie(res, login) { - res.append('Set-Cookie', cookie.serialize(NAME, login ? LOGIN : LOGOUT, { secure: true })); + res.append('Set-Cookie', cookie.serialize(NAME, login ? LOGIN : LOGOUT, { path: '/', secure: true })); } // Helper functions for managing the login sync cookie diff --git a/src/util/KvAuth0.js b/src/util/KvAuth0.js index 5d99bd6ce37..f796e2b73d6 100644 --- a/src/util/KvAuth0.js +++ b/src/util/KvAuth0.js @@ -122,7 +122,7 @@ export default class KvAuth0 { reject(err); } else { // Successful authentication - cookieStore.set('kvls', 'i', { secure: true }); + cookieStore.set('kvls', 'i', { path: '/', secure: true }); this[setAuthData](result); resolve(result); }