From b7c59a1897c960524968a20293b846fe814272ab Mon Sep 17 00:00:00 2001 From: ekzyis Date: Tue, 21 Nov 2023 05:19:16 +0100 Subject: [PATCH] Add Path=/ to pointer cookie --- components/switch-account.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/switch-account.js b/components/switch-account.js index 6f0684f65..989ae978c 100644 --- a/components/switch-account.js +++ b/components/switch-account.js @@ -64,7 +64,7 @@ const AnonAccount = ({ selected, onClick }) => { { - document.cookie = 'multi_auth.user-id=anonymous; Secure' + document.cookie = 'multi_auth.user-id=anonymous; Path=/; Secure' // order is important to prevent flashes of no session setIsAnon(true) await refreshMe() @@ -100,7 +100,7 @@ const Account = ({ account, className }) => { > { - document.cookie = `multi_auth.user-id=${account.id}; Secure` + document.cookie = `multi_auth.user-id=${account.id}; Path=/; Secure` await refreshMe() // order is important to prevent flashes of inconsistent data in switch account dialog setIsAnon(false)