diff --git a/server/src/main.ts b/server/src/main.ts index 8eb6867..4142500 100644 --- a/server/src/main.ts +++ b/server/src/main.ts @@ -56,6 +56,7 @@ const isProduction = process.env.NODE_ENV === "prod"; export const cookieOptions = { path: "/", + domain: process.env.DOMAIN || "localhost", // /home へのリダイレクトのためフロントエンドにも送る httpOnly: true, secure: isProduction, sameSite: "lax",