juudd's MCP endpoint does not answer a browser. A preflight, the OPTIONS request a page sends before it calls another origin, gets the same JSON 404 as any route that does not exist. That is deliberate, it has been since 2026-08-31, and the reason is that every client we measured or found documented calls the endpoint from a server or a native app, never from a web page.
The rest of this post is what we checked, what we declined to build, and the one observation that would change our mind.
Two files disagreed
The endpoint declares three methods, GET, POST and DELETE. It has no OPTIONS route, and it never registers the platform's CORS policy. A person reading that code could take it for an omission.
A second file read as if it were one. The document that tells a client which authorization server guards the endpoint is served with Access-Control-Allow-Origin: *, under a comment saying a browser-based client fetches it before it holds a credential. Put the two together and the client the comment imagines would read the document, obtain a token, and then fail on the endpoint's preflight. One route expected a browser and the other refused it.
The easy fix was the wrong policy
Our CORS policy exists for the panel. It allows exact origins only and it is written for responses that travel with a cookie. The MCP endpoint carries a bearer token instead, and it has no fixed set of origins to list. Registering the panel's allowlist there would have meant borrowing a policy written for a different threat, and it would only have answered the origins that have no reason to call the endpoint at all.
A policy written for one threat does not become right by being the nearest one to hand. The file that holds the rule says that a service which needs a different answer should explain itself in a written decision rather than in a header. This post is the readable form of that decision.
What the evidence said
Three findings, none of them a measurement of a browser client, because none was found.
- The clients we know call from outside a page. The big assistants' connectors call from their own infrastructure, and the clients in our setup docs are native apps or reach the endpoint the same server-side way.
- The protocol does not describe a page as a client. The Streamable HTTP section of the 2025-06-18 revision of the MCP specification, read on 2026-11-27, never mentions CORS, preflight or
OPTIONS. Its one nearby requirement runs the other way: servers must "validate the Origin header" on incoming connections, which is about a page as an attacker. - We could not establish that any browser-page client is in real use. Guides for adding CORS to MCP servers exist, and so do browser test pages. None was seen connecting to anything, and none is something a customer here has been seen using.
That requirement deserves a plain answer. This server does not check Origin. The attack that requirement guards against, DNS rebinding, defeats the browser's same-origin rule and nothing else. A hostile page that reaches the server still holds no token, and every tool sits behind one. That is reasoned rather than measured, and it is written down so the specification's "must" does not read as something we failed to notice.
Even a correct policy would not finish the job
A page-hosted client would need the whole sign-in flow to work cross-origin: the metadata document, the authorization server's registration and token endpoints, and then the MCP endpoint. The authorization server is external, and whether it answers preflights is not ours to decide. Adding CORS to the endpoint alone would move the failure one hop further along the flow, which is the shape of fix we have learned to distrust: it looks like progress because the first error goes away.
What changed, and what did not
- The endpoint stays as it was. No
OPTIONSroute, no CORS registration, no third policy. The 404 now has a comment at the route saying it is on purpose. - The metadata wildcard stays. The document is public and carries no credential, which is the one case a wildcard is safe in. What changed is its comment, which no longer claims a browser continues past that fetch.
- Production behaviour is byte-identical before and after. That is the point. We declined to change a live endpoint for a client nobody has measured.
The trigger to reverse it
A browser-hosted MCP client, measured failing against this server. That means a capture showing the preflight, not a guide saying browsers exist. If that arrives, the work is the option we declined: a CORS policy for bearer tokens, designed against the real client, written as its own decision, because it would be the second policy in a repository whose rule is one. We have not specified any of it. Headers with no client to test them against would be another claim nobody checked.
The rule, once
A server answers the callers it has evidence for and refuses the rest in plain words, and a refusal that is deliberate says so where the code is, with the observation that would reopen it. Nobody here has been seen calling the endpoint from a page, so the page gets a 404 and the reason is written down. The tools and their limits are listed in the docs.