Skip to content

fix(csp): allow cross-subdomain framing for Pro page variant switcher#1331

Closed
NewCoder3294 wants to merge 1 commit intokoala73:mainfrom
NewCoder3294:fix/pro-variant-switcher-iframe
Closed

fix(csp): allow cross-subdomain framing for Pro page variant switcher#1331
NewCoder3294 wants to merge 1 commit intokoala73:mainfrom
NewCoder3294:fix/pro-variant-switcher-iframe

Conversation

@NewCoder3294
Copy link
Copy Markdown
Collaborator

Summary

  • Widen CSP frame-ancestors from 'self' to 'self' https://*.worldmonitor.app https://worldmonitor.app so Tech/Finance variants can render inside the Pro landing page iframe
  • Add missing https://finance.worldmonitor.app to frame-src directive
  • Update all 3 CSP locations: vercel.json, nginx-security-headers.conf, index.html

Root Cause

The Pro page (/pro) embeds worldmonitor.app in an iframe. When users click Tech or Finance in the variant switcher, the iframe navigates to tech.worldmonitor.app / finance.worldmonitor.app. Those subdomains' CSP frame-ancestors 'self' policy blocked them from being framed by www.worldmonitor.app, showing "refused to connect" / "This content is blocked."

Test plan

  • Deploy to preview and navigate to /pro
  • Scroll to Live Dashboard section — World map loads in iframe
  • Click Tech tab inside iframe — tech variant renders (no "refused to connect")
  • Click Finance tab inside iframe — finance variant renders (no "blocked" error)
  • Click World tab — returns to world variant
  • Verify no CSP console errors on any variant

Closes #1322

🤖 Generated with Claude Code

frame-ancestors 'self' blocked tech/finance variants from rendering
inside the Pro landing page iframe. Widen to *.worldmonitor.app.
Also adds missing finance.worldmonitor.app to frame-src.

Closes koala73#1322

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 9, 2026

@NewCoder3294 is attempting to deploy a commit to the Elie Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple Bugs Found in the "worldmonitor.app — Live Dashboard" section in the Pro Landing page.

1 participant