aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-10 00:54:40 +0900
committernsfisis <nsfisis@gmail.com>2024-08-10 00:54:40 +0900
commita158ceb8cc771b3e0e47597db01c8bd35a99c04d (patch)
tree4732de188ce42c7f07f0e7e7b9d4574ffcc68bfe
parent1b4b976ec6c0e6f25cbdde7c3ee564e99a786e64 (diff)
downloadiosdc-japan-2024-albatross-a158ceb8cc771b3e0e47597db01c8bd35a99c04d.tar.gz
iosdc-japan-2024-albatross-a158ceb8cc771b3e0e47597db01c8bd35a99c04d.tar.zst
iosdc-japan-2024-albatross-a158ceb8cc771b3e0e47597db01c8bd35a99c04d.zip
feat(frontend): set secure attribute of cookie
-rw-r--r--frontend/app/.server/session.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/frontend/app/.server/session.ts b/frontend/app/.server/session.ts
index f03f9fa..4730305 100644
--- a/frontend/app/.server/session.ts
+++ b/frontend/app/.server/session.ts
@@ -4,8 +4,7 @@ export const cookieOptions = {
sameSite: "lax" as const,
path: "/",
httpOnly: true,
- // secure: process.env.NODE_ENV === "production",
- secure: false, // TODO
+ secure: process.env.NODE_ENV === "production",
secrets: [process.env.ALBATROSS_COOKIE_SECRET ?? "local"],
};