MCP Shipyard
← Guides

ChatGPT widget origin change on December 15 2026: what to change

ChatGPT widgets move to an origin derived from a hash of your MCP URL before December 15, 2026. Exact steps for CORS, frame-ancestors and storage, how to verify, and what breaks.

chatgptwidgetsapps-sdkcorsframe-ancestorsmigrationdeadline

Short answer: before December 15, 2026, compute your new widget origin, https://mcp-endpoint-<first 32 hex of SHA-256 of your exact MCP URL>.web-sandbox.oaiusercontent.com, and add it next to the old origin in every CORS list, frame-ancestors header and third-party allowlist your widget depends on. Keep the old origin for now, keep your _meta.ui.domain, and make the widget start cleanly with empty browser storage. If your app has no widget, there is nothing to do.

OpenAI announced this on 2026-11-30 in the Apps SDK changelog and details it in the widget origin migration guide. Both were fetched on 2026-12-04. Our scanner reports it as rule apps.origin-migration.

What breaks if you miss it

OpenAI's pages say to update "before December 15" but do not say what changes on that date, and they give no date for removing the old origin. That part is unverified. What follows from how browsers work, once your widget runs on the new origin:

DependencyLikely symptomBasis
API with an origin allowlist or CORS rulePreflight fails, widget shows empty or error stateInference, not stated by OpenAI
Embedded page with frame-ancestorsFrame refuses to render, blank area, console violationInference; the guide names the console check
Third-party service keyed to a referrer or domainMaps, fonts or auth calls rejectedInference
Code comparing event.origin to a literalMessages ignoredInference; scanner rule apps.hardcoded-widget-origin
localStorage or IndexedDBSaved state goneStated: new origin starts with empty storage

Treat December 15 as a hard deadline. Users affected would be everyone who opens a widget in ChatGPT, not only reviewers.

Who is affected

Per the migration guide, only remote MCP apps registered with ChatGPT that have a widget UI. That includes apps with a declared widget domain and apps with none. MCP servers configured directly in Codex Desktop use registration-based origins and are not covered. You do not change your MCP server URL, and you do not replace _meta.ui.domain or _meta["openai/widgetDomain"]. OpenAI says to keep both for Open in app and link handling.

Step 1: compute the origin

Hash the UTF-8 bytes of the exact string you configured in ChatGPT, keep the first 32 lowercase hex characters, and wrap them. No normalization: a trailing slash, a query string, different case or a port changes the hash.

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|'

OpenAI's check value: https://example.com/mcp gives https://mcp-endpoint-c3d80a4ed901ee05b21755a88273b4a4.web-sandbox.oaiusercontent.com. Run your tool on that URL first to confirm your command.

Two other ways to get it: scan your URL with the free scan, which prints the origin in the evidence of the finding, or open a widget in ChatGPT and search DevTools for the data-mcp-app-origin-generated attribute on the widget's host wrapper. Scan the exact URL ChatGPT uses.

Step 2: find what depends on the old origin

Search code, server config and vendor dashboards for web-sandbox.oaiusercontent.com. OpenAI lists five categories: API allowlists and CORS, embedded pages with frame-ancestors, third-party domain or referrer restrictions, hardcoded origin checks or URL building, and browser storage tied to the old origin. If none apply, OpenAI says no changes are expected.

Step 3: add the new origin, keep the old one

Use the bare origin: scheme and host, no path, query or trailing slash.

  1. CORS and origin checks. Add the new origin to your allowed list. Echo the request Origin back only when it matches your list; do not switch to * to make this go away.
  2. frame-ancestors. For each page your widget embeds, edit the HTTP response header. Include the new widget origin and the top-level ChatGPT origin, and preserve your other directives. A <meta> tag does not work for this directive. For a third-party page, the provider must change it. Neither _meta.ui.csp.frameDomains nor CORS affects frame-ancestors.
  3. Third-party settings. Add the new origin or referrer to any provider restricted to your current widget hostname.
  4. Hardcoded checks. Remove literal comparisons to the old origin. Scanner rule: apps.hardcoded-widget-origin.
  5. Do not remove the old origin yet. OpenAI advises removing it only after migration is complete for every client you support.

Step 4: handle empty storage

The new origin starts with no saved localStorage or IndexedDB data. A fresh widget must load and work, restoring state from your backend. Move drafts and preferences server-side or accept that users start fresh.

Step 5: verify

OpenAI's verification list:

  1. Render a fresh widget and confirm the iframe uses the new hostname. The attribute alone is not proof, because it can differ from the running iframe origin during the transition.
  2. In the Network panel, confirm widget requests send the new origin in Origin, and that both preflight and actual requests succeed.
  3. Open each embedded page, read the final document response for a frame-ancestors policy that allows the new origin and every other ancestor, and confirm it renders.
  4. Check the Console for frame-ancestors violations.

You can test CORS before the switch by sending the new origin yourself:

curl -i -X OPTIONS https://api.acme.example/v1/data \
  -H "Origin: https://mcp-endpoint-<hash>.web-sandbox.oaiusercontent.com" \
  -H "Access-Control-Request-Method: GET"

Expect your allow-origin header to echo that exact origin.

If you change your MCP URL later

The origin is a function of the URL, so a new URL means a new origin. Add the new derived origin to every allowlist before you switch endpoints. Two apps sharing one MCP URL share one origin.

RuleWhat it checks
apps.origin-migrationReports your derived origin for widget servers, severity major
apps.hardcoded-widget-originWidget HTML that names the old sandbox origin
apps.domain-missing_meta.ui.domain still needed for submission and Open in app
apps.csp-frame-domainsframeDomains declared; nested frames need justification

Submitting a new app? See the ChatGPT app submission checklist.

Checklist

DoneItem
[ ]Origin computed from the exact MCP URL, matched to OpenAI's example
[ ]Old origin searched in code, server and vendor settings
[ ]New origin added to CORS and third-party settings
[ ]frame-ancestors headers allow new origin and ChatGPT origin
[ ]No hardcoded origin comparisons
[ ]Widget works with empty storage
[ ]All four verification steps run after the change is active
[ ]Old origin kept until migration is complete

Run the free scan at https://mcpshipyard.com/scan

Check your server against these rules

Scan runs the checks from this guide against a live URL and lists each failing rule with its fix.

Scan a server