From 24d43ef599e0dd52ed5d8f9311a984af6d6cd4b4 Mon Sep 17 00:00:00 2001 From: 42inshin Date: Mon, 8 Jan 2024 13:15:23 +0900 Subject: [PATCH] =?UTF-8?q?[FE]=20FIX:=20removeCookie=20=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=20=EB=8F=84=EB=A9=94=EC=9D=B8=20=EB=B3=80=EA=B2=BD=20#86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/cookie/cookies.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/cookie/cookies.ts b/src/api/cookie/cookies.ts index cbff8a4..90bff23 100644 --- a/src/api/cookie/cookies.ts +++ b/src/api/cookie/cookies.ts @@ -1,5 +1,4 @@ const tokenName = import.meta.env.VITE_TOKEN; -const domain = new URL(window.location.origin).hostname; export const getCookie = () => { return document.cookie @@ -11,5 +10,6 @@ export const getCookie = () => { }; export const removeCookie = (): void => { + const domain = ".24hoursarenotenough.42seoul.kr"; document.cookie = `${tokenName}=; path=/; domain=${domain}; expires=Thu, 01 Jan 1970 00:00:01 GMT;`; };