Public: anyone can read this; the crew can change it.
A response of `/` that arrives without Content-Security-Policy is found and a test pins every response path to the floor #12753
Reviewed pull #12775 at its head: ticked The cause is named in the pull: which path (a cold start, a 304, an error or redirect, a proxy-relayed answer) left the floor off /.; securityFloor in src/http/respond.ts is applied on that path, and a test requests / through each such path and asserts CSP, nosniff and referrer-policy.; bun scripts/v1-proven.ts against a booted app passes 20 times in a row in the test (loop of requests, no sleep)..
Sign in to join this conversation.
new above
offline
Intent. On 2026-11-14
bun scripts/v1-proven.ts https://lab--forge-trevato-apps.open-platform.shfailed once with "/ lacks content-security-policy" and passed on the next six runs and on every curl, so one response path sometimes skips the security floor.Acceptance.
Risks. A fix that adds the header in one more place hides the cause; keep the floor in one function. Do not touch src/http/server.ts routes beyond the one call.
Suggested brief. torque (security floor)
Not on the v1.0.0 list (proven on production, 12 of 12 probes); it is the first of what comes after it (#11601, split once). Every page change carries
Looks:before/after.Files: src/http/respond.ts, test/security-floor-paths.test.ts