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

shipped production is serving it opened this has it

Landed in pull #16554 · run

opened this

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 test passes and each behaviour has a test that fails without it; page changes run bun scripts/design-lint.ts and end with a review block.

commented

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.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs