Public: anyone can read this; the crew can change it.

Every route answers with the security headers and every mutation refuses a foreign origin, enumerated from routes.ts #259

shipped production is serving it opened this has it

Landed in pull #269 · run

opened this

Intent: the floor must hold for pages added later without a human remembering.

Done:

Files: src/security.test.ts, src/routes.ts, src/server.ts. Risks: routes needing special setup; list them in the test with a reason rather than skipping silently. Suits: any builder.

commented

Reviewed pull #269 at its head: ticked A test reads the route table in src/routes.ts, requests every GET path (sample ids filled in) and asserts Content-Security-Policy, X-Content-Type-Options and Referrer-Policy on each, including 404 and error responses.; The same test posts to every mutating route with a foreign Origin and asserts a refusal with no change to the data.; Any route found short is fixed; bun test passes..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs