Skip to content
WarningWeb

ChatGPT apps face a December 15 breakage trap. Check your UI now

ChatGPT apps with remote MCP interfaces are changing origins. Audit API access, embeds and empty storage before OpenAI's December 15 deadline.

By DC Team · · 5 min read

OpenAI logo and ChatGPT label above 'ChatGPT apps could break after this move.' Two browser windows show an old address changing to a new address.

ChatGPT apps that display a custom interface from a remote MCP server have an infrastructure deadline: prepare dependent origin allowlists before December 15. OpenAI is changing where those interfaces run. An unchanged backend can therefore meet a browser it no longer recognizes. The November 30 plugin UI changelog calls for updates to API allowlists, embedded-page policies and third-party restrictions.

The immediate decision is whether your interface depends on its current address. A successful tool response is too narrow a release check. Ask a user to load the interface, retrieve data and interact with an embedded page. Those are separate outcomes, and your migration evidence should record each one.

Which ChatGPT apps need the origin audit?

OpenAI's migration guide covers remote MCP apps registered with ChatGPT. Apps without widget UI are outside its scope. MCP servers configured directly in Codex Desktop use registration-based origins instead.

For a declared domain such as https://example.com, an old widget address can be https://example-com.web-sandbox.oaiusercontent.com. The replacement uses this format:

https://mcp-endpoint-<32-character hash>.web-sandbox.oaiusercontent.com

The hash comes from the exact configured MCP server URL. The practical consequence is that your endpoint configuration deserves the same review as an allowlist change. Treat a future endpoint edit as a reason to recalculate the destination before switching traffic.

Keep _meta.ui.domain, or its compatibility alias _meta["openai/widgetDomain"], pointing at your app domain. OpenAI's component resource reference retains that metadata for navigation and link handling. Replacing it with the generated sandbox address is the wrong repair.

Our recommendation: assign this to the owner of the browser interface, with backend and embed-provider owners attached. A ticket assigned only to the MCP transport owner can miss the systems that decide whether the UI works.

A tested origin calculation, including the trailing-slash trap

We ran the following calculation with Node.js 22.22.3 and checked OpenAI's published example. Save this as widget-origin.mjs, then run node widget-origin.mjs 'https://example.com/mcp'. Replace the argument with the exact endpoint configured for your app.

import { createHash } from "node:crypto";

const endpoint = process.argv[2];
if (!endpoint) throw new Error("Pass the exact configured MCP URL");
const hash = createHash("sha256")
  .update(endpoint, "utf8")
  .digest("hex")
  .slice(0, 32);
console.log(`https://mcp-endpoint-${hash}.web-sandbox.oaiusercontent.com`);

Our output matched the documented example:

https://mcp-endpoint-c3d80a4ed901ee05b21755a88273b4a4.web-sandbox.oaiusercontent.com

We also calculated two closely related inputs. These are reproducible hash results, not tests against a live MCP server:

Exact input URLFirst 32 hash characters
https://example.com/mcpc3d80a4ed901ee05b21755a88273b4a4
https://example.com/mcp/3738517512411cede5846dedc2148040
https://example.com/mcp?x=15f182551c015d939740eebb1c7e35ff5

This is why copying a website hostname into the calculation is a poor shortcut. Our three input strings produce three different destinations. Keep the configured string in the migration record so another engineer can reproduce your result without guessing about a slash or query parameter.

OpenAI also exposes the destination in data-mcp-app-origin-generated on the widget's host wrapper. During transition, that value can differ from the running iframe's origin. Check the active frame before calling a test a post-migration result. Origin inspection instructions.

Scope of verification: we tested the calculation locally, not a registered app's post-migration workflow inside ChatGPT. The browser checks below are an acceptance procedure for your deployment, not a claim that a production app passed.

API access and embedded pages need separate evidence

CORS governs whether browser JavaScript can read a cross-origin response. A backend returning JSON is only part of that exchange. Mozilla's CORS documentation explains the response headers and preflight negotiation, including the requirement for an explicit allowed origin when credentials are involved.

For each browser API route, record the widget's actual Origin request header, the preflight result when present, and the actual response. Then confirm the interface displays the returned data. A terminal request that prints JSON does not exercise browser enforcement. It is useful for inspecting headers, but it cannot replace the final interaction.

Avoid turning this into a wildcard rollout. Preserve the application's existing authentication and credential model, and add only the intended destination to its origin policy. When a server selects an allowed origin dynamically, review its caching behavior too: a response intended for one origin should not become another origin's cached authorization result. Mozilla documents Vary: Origin for that situation in the same guide.

Embedding introduces another decision. An embedded document's Content-Security-Policy: frame-ancestors controls who may frame it. The policy checks every ancestor, and the directive must be delivered as an HTTP response header rather than a meta tag. Mozilla's frame-ancestors reference.

Meanwhile, the widget's _meta.ui.csp.frameDomains controls its permitted iframe destinations, according to OpenAI's UI reference. These policies answer different questions. Giving your widget permission to request an editor does not give that editor permission to appear inside your widget.

Use this acceptance matrix when handing the work between teams:

BoundaryOwner to involveEvidence to collect
Widget fetch to backendAPI or gateway ownerBrowser reads and displays the response
Widget embedding a pageUI owner and embedded-page providerDocument renders and its controls work
Widget initializationFrontend and state-service ownersMain workflow completes with empty storage

A green API row should never close the embedded-page row. That is the operational distinction most likely to disappear in a rushed migration ticket.

Empty storage is a first-run test

Browser storage belongs in the acceptance criteria. Mozilla documents localStorage as associated with a document's origin, while IndexedDB follows the same-origin policy. A saved workspace selection in an old browser context is not evidence that a fresh context can recover it. localStorage reference.

Test with a disposable account and a fresh browser context. Confirm the widget has no saved local state, then open its primary screen. Choose a record, perform a harmless interaction, reload and confirm that the expected state returns. Record what was restored from the backend and what the user had to choose again.

For a concrete example, imagine an issue-tracker widget that stores its selected project only in browser storage. Your acceptance question is whether a returning user gets a usable project picker when that selection is absent. A blank panel is a failure even if every network request returns successfully. This is a proposed test case, not an observed defect in a named app.

What to do before December 15

Start by inventorying dependencies on the current widget hostname. Search application code, gateway rules, CDN configuration and third-party dashboards. An allowlist maintained by an embedded-service provider deserves an owner and a request date, because your own deployment cannot necessarily change it.

Next, keep old and new origins allowed during the transition, as OpenAI's migration procedure specifies. Keep the two values in the ticket alongside the exact endpoint used to calculate the new one. Do not close the work merely because a destination value appears in DevTools.

Run the matrix twice where possible: first against the currently active interface to establish a baseline, then against a fresh widget after its actual origin changes. Include at least one API interaction, every critical embedded page and initialization without saved browser state. Attach browser evidence to each row and name the client tested.

If you can only prepare configuration before your app switches, mark the ticket prepared, awaiting active-origin verification. That is a useful operational state. It keeps an untested transition visible without blocking the configuration repair. Retire the old allowance only after your supported clients have completed migration, following OpenAI's verification guidance.

For teams building these interfaces, the release gate should be a working user journey. The endpoint still answering a tool call is the beginning of that check.