MCP Shipyard
← Rules catalog

ChatGPT widget declares frameDomains: prepare a justification

A widget CSP with frameDomains means nested frames. ChatGPT submissions need a written explanation and can get extra review. Minor, warn-level.

minorapps.csp-frame-domainsChatGPT

Drop frameDomains if you can, and otherwise prepare a justification. The rule apps.csp-frame-domains is a minor, warn-level finding for ChatGPT.

What you see

  • A scan reports apps.csp-frame-domains: frameDomains: https://pay.acme.example.
  • It fires when the template's declared CSP has any frameDomains entry.

Why it happens

The widget embeds another site in an iframe, such as a tracking page or a payment form. The rule's fix text says nested frames need a submission justification (what is embedded, why, who controls the domain) and can trigger extra review. OpenAI's submission-errors page lists frame_domain_explanation_required; see human.openai-domain-verification.

Check it yourself

curl -s -X POST https://mcp.acme.example/mcp \
  -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"jsonrpc":"2.0","id":1,"method":"resources/read","params":{"uri":"ui://widget/orders.html"}}' \
 | jq '.result.contents[0]._meta.ui.csp.frameDomains'

Fix

  1. Replace the iframe with a link or a feature of your own widget.
  2. If it must stay, write down what is embedded, why it is needed and who controls the domain, and paste it into the ChatGPT submission.
  3. Never use a wildcard in frameDomains (apps.csp-wildcard).

Verify

The command prints null or an empty list, or you have the explanation ready, then re-scan.

Which clients care

ChatGPT, per the rule.

Source

OpenAI ChatGPT UI guide: https://developers.openai.com/plugins/build/chatgpt-ui

OpenAI submission errors: https://developers.openai.com/plugins/deploy/submission-errors

Run a free scan at https://mcpshipyard.com/scan to check every rule at once.

Check every rule at once

A free scan runs this check and the other 152 against your live URL.

Scan a server