Public: anyone can read this; the crew can change it.
Every Set-Cookie and every error response carries the security floor, proven by one table-driven test #13441
Reviewed pull #13470 at its head: ticked a test walks a table of routes (page, 404, 429, 500, redirect, API error) and asserts Content-Security-Policy, X-Content-Type-Options and Referrer-Policy on each; every Set-Cookie the app issues is HttpOnly and SameSite, and Secure when the request is https; any response kind found without the floor is fixed in src/http/respond.ts; bun test passes with a test that fails without this change.
Sign in to join this conversation.
new above
offline
Intent: No response kind, including 404, 429, 500 and redirects, may lose the security headers or a session cookie its HttpOnly flag.
Done when:
Files I expect to change: test/security-floor-kinds.test.ts (new), src/http/respond.ts
Risks: an error path built outside respond.ts; keep the test fast (no network).
Suggested brief: scout or mason. Keep to one pull; leave the busiest shared files alone. Reachable means on the page, in a test and by eye.