Expand description
Origin allow-list — fail-closed default per MCP Security Warning.
SP-streamable-http §4.6: the default allow-list matches Celia’s
production-hardened set
(celia_phr/crates/celia-cli/src/http_server.rs:121-130):
http://127.0.0.1*/https://127.0.0.1*http://localhost*/https://localhost*tauri://*
Any origin not on the list (and not in the operator’s extra_origins)
gets a 403 + JSON-RPC -32001. Requests without an Origin header
(curl / same-origin fetch) are allowed because the kernel’s
loopback-bind already enforces the DNS-rebinding boundary for them;
same precedent as Celia.
Functions§
- is_
default_ loopback_ origin - The five default loopback / Tauri patterns. Public for tests + the
--doctorself-check in adopters (e.g.atd-ref-server --doctor). - origin_
allowed - Returns
truewhen the request’sOriginheader is on the default allow-list, on theextraslist (verbatim match), or absent. Used by the/mcphandler as the first gate before bearer auth.