fix(pages): keep the frame's sandbox policy past the config headers

next.config's baseline Content-Security-Policy replaced the frame route's
own header, so a frame address opened directly ran without the sandbox.
A later headers rule for the two frame paths restores it. Also drop the
gap above a header-less page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-12-02 18:18:51 +08:00
1 parent f13b2a592a
commit 36dbb4c949
6 files changed
+49 -8

No files matched your search

@@ -30,7 +30,7 @@ Design: `design.md` and `docs/superpowers/specs/2026-12-02-custom-html-block-des
## 3. Release
- [x] 3.1 `docs/deployment.md`: the SQL rows and the frame routes. A Traefik or proxy layer must not add a CSP that overrides the frame's own policy.
- [ ] 3.2 Live Playwright check on the local stack, at 1280 and 360 px:
- [x] 3.2 Live Playwright check on the local stack, at 1280 and 360 px:
- paste the INS proof-of-concept HTML into the INS page, with "hide page header" on and the sign-up form below it;
- it looks like the PoC signed out;
- opening the frame address directly shows no Co-Lite cookies to the frame's script;