MCP Shipyard
← Rules catalog

ChatGPT widget origin change December 15, 2026: CORS, frame-ancestors and checklist

ChatGPT apps with widgets get a new sandbox origin before Dec 15, 2026. Compute your origin and update CORS, frame-ancestors and storage assumptions.

majorapps.origin-migrationChatGPT

If your ChatGPT app renders a widget, its sandbox origin changes before December 15, 2026. Add the new origin to your API CORS allowlists, frame-ancestors headers and any third-party referrer settings now, keep the old origin for the moment, and make the widget start with empty browser storage. The change was announced 2026-11-30.

What you see

  • A scan reports apps.origin-migration as major when at least one tool is a widget tool: "Before December 15, 2026 allow <origin> ... N widget tool(s) affected." The evidence includes the generated origin.
  • After the cutover (if you do nothing), widget calls to your API may fail CORS and embedded pages may refuse to load in the widget frame. That follows from how those headers work; the exact failure in ChatGPT is not verified here.

Why it happens

Per the rule, the new origin has the form https://mcp-endpoint-<hash>.web-sandbox.oaiusercontent.com, where the hash is the SHA-256 of the exact configured MCP URL (no normalization), first 32 hex characters. A different origin means browser storage starts empty and any allowlist keyed to the old origin stops matching.

Check it yourself

Compute your origin from the exact URL you configured in ChatGPT:

URL="https://mcp.acme.example/mcp"
printf '%s' "$URL" | shasum -a 256 | cut -c1-32 | sed 's|^|https://mcp-endpoint-|; s|$|.web-sandbox.oaiusercontent.com|'
import { createHash } from "node:crypto";
const origin = `https://mcp-endpoint-${createHash("sha256").update("https://mcp.acme.example/mcp", "utf8").digest("hex").slice(0, 32)}.web-sandbox.oaiusercontent.com`;

A trailing slash or different case gives a different hash, so use the string exactly as entered.

Fix

  1. CORS: add the computed origin to Access-Control-Allow-Origin handling for the API your widget calls. Keep the old origin until OpenAI's migration guide says to remove it.
  2. frame-ancestors: add it to any page of yours that the widget embeds.
  3. Third-party services: update referrer or origin allowlists (analytics, maps, auth).
  4. Keep _meta.ui.domain as is.
  5. Storage: do not rely on localStorage or cookies surviving; start from empty state.
  6. Remove hardcoded comparisons to web-sandbox.oaiusercontent.com in widget code (apps.hardcoded-widget-origin) and check event.origin through the MCP Apps bridge.

Verify

Send a request from a test page with Origin: <computed origin> and confirm the CORS response header allows it:

curl -i https://api.acme.example/v1/data -H "Origin: https://mcp-endpoint-<hash>.web-sandbox.oaiusercontent.com"

Then open the app in ChatGPT after the migration and check the browser console for CORS or frame errors.

Which clients care

ChatGPT only. The rule is tagged ChatGPT.

Source

OpenAI widget origin migration guide: https://developers.openai.com/plugins/guides/widget-origin-migration

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