MCP app widget CSP allows http:// or ws:// origins: use HTTPS and WSS
Non-TLS origins in the widget CSP fail the rule. Serve the dependency over https:// or wss:// and declare that origin. Loopback is exempt.
Declare only https:// and wss:// origins in the widget CSP. The rule apps.csp-insecure-scheme is a major finding for ChatGPT and Claude. It fails on any entry starting with http:// or ws://, except localhost and 127.0.0.1, which are ignored.
What you see
- A scan reports
Non-TLS entries: http://api.acme.example, ws://stream.acme.example. - A widget served over HTTPS that calls a plain-HTTP API is also subject to browser mixed-content blocking. The exact browser message is not verified here.
Why it happens
- The widget talks to an internal or staging API that has no certificate.
- A WebSocket URL was copied from a local dev setup (
ws://). - The origin was written without a scheme and a tool added
http://.
The MCP Apps specification defines the CSP lists as origins for network requests and static resources, and says hosts must not allow undeclared domains. OpenAI's UI guide asks for narrow allowlists and says review compares the declared policy with UI behaviour. Neither page spells out a scheme rule; this rule is a conservative check in the scanner.
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 -r '.result.contents[0]._meta.ui.csp | [.connectDomains, .resourceDomains, .frameDomains] | flatten | .[]' \
| grep -Ei '^(http|ws)://'
No output means the lists are clean.
Fix
- Put the dependency behind TLS and use its
https://orwss://origin. - Update the widget code to call the same origin you declare.
- Keep plain-HTTP loopback addresses for local development only, and remove them from the production template.
Verify
The grep prints nothing, the widget loads without mixed-content warnings, and the re-scan passes. Also see auth.https for the MCP endpoint itself.
Which clients care
ChatGPT and Claude, per the rule.
Source
OpenAI UI guide: https://developers.openai.com/plugins/build/chatgpt-ui
MCP Apps specification: https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx
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.