diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-10 00:54:40 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-10 00:54:40 +0900 |
| commit | a158ceb8cc771b3e0e47597db01c8bd35a99c04d (patch) | |
| tree | 4732de188ce42c7f07f0e7e7b9d4574ffcc68bfe /frontend | |
| parent | 1b4b976ec6c0e6f25cbdde7c3ee564e99a786e64 (diff) | |
| download | iosdc-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
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/app/.server/session.ts | 3 |
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"], }; |
