261102_02_ENH: 공용 JWT 쿠키 Domain 적용 조건을 환경변수 값 기준으로 변경

This commit is contained in:
2026-11-02 15:23:06 +09:00
parent 273caf267d
commit d17b7316e7

View File

@@ -12,7 +12,7 @@ export const setAuthCookie = (response: NextResponse, token: string) => {
sameSite: "lax",
path: "/",
} as const;
const domain = secure ? serverEnv.AUTH_COOKIE_DOMAIN : undefined;
const domain = serverEnv.AUTH_COOKIE_DOMAIN;
response.cookies.set(CookieKeys.AuthToken, token, {
...options,