diff --git a/apps/common/features/src/app/index.tsx b/apps/common/features/src/app/index.tsx
index 4e7a2c555..286d7a196 100644
--- a/apps/common/features/src/app/index.tsx
+++ b/apps/common/features/src/app/index.tsx
@@ -4,6 +4,7 @@ import "@fontsource-variable/noto-sans-kr";
import { AppProvider } from "./providers";
import { cookies } from "next/headers";
+import Script from "next/script";
const App = async ({ children }: Readonly<{ children: React.ReactNode }>) => {
const theme = (await cookies()).get("site-theme-key");
@@ -11,7 +12,7 @@ const App = async ({ children }: Readonly<{ children: React.ReactNode }>) => {
return (
-
+
{children}
diff --git a/apps/cs/src/app/index.tsx b/apps/cs/src/app/index.tsx
index 5ee50e4ab..d2edf5df4 100644
--- a/apps/cs/src/app/index.tsx
+++ b/apps/cs/src/app/index.tsx
@@ -4,14 +4,14 @@ import "@fontsource-variable/noto-sans-kr";
import { cookies } from "next/headers";
import { AppProvider } from "./providers/app-provider";
-
+import Script from "next/script";
const App = async ({ children }: Readonly<{ children: React.ReactNode }>) => {
const theme = (await cookies()).get("site-theme-key");
return (
-
+
{children}
diff --git a/apps/cs/src/entities/auth/lib/token-manager.ts b/apps/cs/src/entities/auth/lib/token-manager.ts
index 5163f19c9..dd9aea352 100644
--- a/apps/cs/src/entities/auth/lib/token-manager.ts
+++ b/apps/cs/src/entities/auth/lib/token-manager.ts
@@ -24,6 +24,8 @@ export class TokenManager {
setCookie(key, value, {
secure: window.location.protocol === "https:",
sameSite: "lax",
+ domain: domain,
+ path: "/", // 모든 경로에서 접근 가능
});
}
@@ -46,7 +48,8 @@ export class TokenManager {
}
public removeToken(key: string): void {
- removeCookie(key);
+ const domain = this.getCookieDomain();
+ removeCookie(key, { domain, path: "/" });
}
public setupRefreshTimer(