From cdef96e696371a39528ccb42c5c87b14d26f6c8e Mon Sep 17 00:00:00 2001 From: Frank Noirot Date: Wed, 14 Feb 2024 14:15:26 -0500 Subject: [PATCH] Try to properly set domain when deleting cookie for signout --- src/app.html | 2 +- src/hooks.server.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.html b/src/app.html index 3912faa..79c5b0d 100644 --- a/src/app.html +++ b/src/app.html @@ -15,7 +15,7 @@ - + diff --git a/src/hooks.server.ts b/src/hooks.server.ts index 210f5cc..0b6a53c 100644 --- a/src/hooks.server.ts +++ b/src/hooks.server.ts @@ -6,7 +6,7 @@ import { PLAYWRIGHT_MOCKING_HEADER } from '$lib/consts' import { hooksUserMocks, isUserMock } from '$lib/mocks' const unProtectedRoutes = ['/'] -const domain = import.meta.env.DEV ? 'localhost' : import.meta.env.VITE_SITE_BASE_URL +const domain = import.meta.env.DEV ? 'localhost' : '.zoo.dev' export const handle = async ({ event, resolve }) => { const mock = event.request.headers.get(PLAYWRIGHT_MOCKING_HEADER)