From d1f2e5e72d321fe656b612cf59d141ad3116e771 Mon Sep 17 00:00:00 2001 From: nakaterm <104970808+nakaterm@users.noreply.github.com> Date: Mon, 8 Dec 2025 01:27:50 +0900 Subject: [PATCH] =?UTF-8?q?Cookie=20=E8=A8=AD=E5=AE=9A=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/main.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/main.ts b/server/src/main.ts index 480fc95..1bf9278 100644 --- a/server/src/main.ts +++ b/server/src/main.ts @@ -45,10 +45,9 @@ const isProduction = process.env.NODE_ENV === "prod"; export const cookieOptions = { path: "/", - domain: process.env.DOMAIN, httpOnly: true, secure: isProduction, - sameSite: isProduction ? "none" : "lax", + sameSite: "lax", maxAge: 60 * 60 * 24 * 365, // Express だとミリ秒だったが、Hono では秒らしい } as const;