Files
descrybe/apps/api/internal/httpapi
greeneclipseandClaude Fable 5 0eef202f56 Add SESSION_COOKIE_DOMAIN so /admin SSR sees the session cookie
Production splits web (descrybe.io) and API (api.descrybe.io). The session
cookie was host-only for api.descrybe.io, so the browser never sent it to
the web host. The /admin SvelteKit SSR gate (fetchMeStaff in
+layout.server.ts) forwards the incoming cookie header to /api/auth/me —
with no cookie to forward it always got 401 and bounced every successful
login back to /login?next=/admin (login POST 200, /me 200 from the
browser, /me 401 from the web server).

New SESSION_COOKIE_DOMAIN env (default empty = host-only, local dev
unchanged) sets the session cookie Domain attribute; set it to the parent
domain (descrybe.io) in production so both hosts receive the cookie.
Leading dot is normalized away. CSRF needs no change — it already seeds
cross-origin via the X-CSRF-Token response header.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-18 00:31:58 +02:00
..
fix
2026-08-17 21:20:45 +02:00
fix
2026-08-17 09:33:07 +02:00
2026-08-16 11:37:42 +02:00
fix
2026-08-16 12:00:28 +02:00
fix
2026-08-14 01:38:34 +02:00
fix
2026-08-14 01:38:34 +02:00
fix
2026-08-16 18:36:56 +02:00
fix
2026-08-17 09:33:07 +02:00
fix
2026-08-17 00:39:25 +02:00
fix
2026-08-17 00:39:25 +02:00
fix
2026-08-17 09:33:07 +02:00
fix
2026-08-17 09:33:07 +02:00
fix
2026-08-17 23:06:07 +02:00
fix
2026-08-17 21:20:45 +02:00
fix
2026-08-17 21:20:45 +02:00
fix
2026-08-17 21:20:45 +02:00
fix
2026-08-17 00:53:51 +02:00
fix
2026-08-17 21:20:45 +02:00
fix
2026-08-17 11:30:14 +02:00
fix
2026-08-13 21:01:49 +02:00
fix
2026-08-17 21:20:45 +02:00
fix
2026-08-17 11:30:14 +02:00
fix
2026-08-17 21:20:45 +02:00
fix
2026-08-17 21:20:45 +02:00
fix
2026-08-17 21:20:45 +02:00
fix
2026-08-13 21:01:49 +02:00
fix
2026-08-17 11:30:14 +02:00
2026-08-16 11:37:42 +02:00
fix
2026-08-17 00:39:25 +02:00
fix
2026-08-14 00:06:43 +02:00
fix
2026-08-17 21:20:45 +02:00
fix
2026-08-17 21:20:45 +02:00
fix
2026-08-17 21:20:45 +02:00
fix
2026-08-17 21:20:45 +02:00
fix
2026-08-17 21:56:09 +02:00
fix
2026-08-17 21:56:09 +02:00
fix
2026-08-17 21:20:45 +02:00
fix
2026-08-17 21:20:45 +02:00
fix
2026-08-17 21:20:45 +02:00