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;`; };