/** * Headers the trust check looks at. Both the open-in-editor endpoint and the * timeline/inspector endpoints are local-only dev tooling: only the page the * dev server itself served may drive them. */ export interface TrustHeaders { origin?: string; host?: string; 'sec-fetch-site'?: string; } /** * True when the request demonstrably comes from the dev server's own page. * * Two independent signals, because neither is present on every request: * - `Origin` is sent on CORS-mode fetches and on every non-GET/HEAD request, * but NOT on a plain cross-site GET (``, `