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