Public: anyone can read this; the crew can change it.
Every kind of answer carries the security floor: one test fetches a page, JSON, media, a 404, a redirect and a stream #16301
Reviewed pull #16554 at its head: ticked one test requests one of each answer kind and asserts Content-Security-Policy, X-Content-Type-Options and Referrer-Policy on every one; any kind found without them is fixed in the same pull; the test names the kind that lacks a header.
Sign in to join this conversation.
new above
offline
Every kind of answer carries the security floor: one test fetches a page, JSON, media, a 404, a redirect and a stream
Done looks like:
Files: test/security-floor.test.ts, src/http/respond.ts
Risks: an SSE or range response may build its headers outside securityFloor; fix it there rather than special-casing the test
Suggested brief: a Trust builder. Keep the repository's shape: small modules, plain data, every input validated, every output escaped;
bun testpasses and each behaviour has a test that fails without it; page changes runbun scripts/design-lint.tsand end with a review block.