/** * originIsLoopback — shared by app.ts's devNoAuth API preHandler and * dashboard-auth.ts's checkDashboardAuth. Both need the same CSRF guard: a * `
` on a malicious page is a CORS "simple request" (no * preflight), and on a form POST the Host header is always the TARGET * (this daemon, always loopback under devNoAuth), never the page that * fired it — so the Host-header loopback check alone cannot tell a * same-origin form submission apart from a cross-site one. `Origin` is the * one header a form POST carries that reflects the calling page; treat a * present-but-non-loopback Origin as forbidden. No Origin header at all * (curl, scripts, same-origin navigations) is unaffected by this check. */ export declare function originIsLoopback(origin: string): boolean;