diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-10 00:56:26 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-10 00:56:26 +0900 |
| commit | a8f2594e8dcb741fb942092cbc53d64cf93132ef (patch) | |
| tree | c694b162e9c33d9f805b3c473a9d042f27ac63b7 /frontend | |
| parent | 01fafac46390e540f4d8766d53177a69da7e64ae (diff) | |
| parent | c04691e046910f0e419370472abcf0a3c615d6b7 (diff) | |
| download | phperkaigi-2025-albatross-a8f2594e8dcb741fb942092cbc53d64cf93132ef.tar.gz phperkaigi-2025-albatross-a8f2594e8dcb741fb942092cbc53d64cf93132ef.tar.zst phperkaigi-2025-albatross-a8f2594e8dcb741fb942092cbc53d64cf93132ef.zip | |
Merge branch 'feat/security'
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/app/.server/session.ts | 5 | ||||
| -rw-r--r-- | frontend/app/root.tsx | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/frontend/app/.server/session.ts b/frontend/app/.server/session.ts index 102bcd2..4730305 100644 --- a/frontend/app/.server/session.ts +++ b/frontend/app/.server/session.ts @@ -4,9 +4,8 @@ export const cookieOptions = { sameSite: "lax" as const, path: "/", httpOnly: true, - // secure: process.env.NODE_ENV === "production", - secure: false, // TODO - secrets: ["TODO"], + secure: process.env.NODE_ENV === "production", + secrets: [process.env.ALBATROSS_COOKIE_SECRET ?? "local"], }; export const sessionStorage = createCookieSessionStorage({ diff --git a/frontend/app/root.tsx b/frontend/app/root.tsx index 57f1a10..054474a 100644 --- a/frontend/app/root.tsx +++ b/frontend/app/root.tsx @@ -9,7 +9,7 @@ import { import "./tailwind.css"; export const links: LinksFunction = () => [ - { rel: "icon", href: "/favicon.svg" }, + { rel: "icon", href: "/iosdc-japan/2024/code-battle/favicon.svg" }, ]; export function Layout({ children }: { children: React.ReactNode }) { |
