Defines standardized HTTP header names for authorization decisions, request identity, and route classification used by middleware and downstream services.
// Source: https://github.com/jaccen/AIRoute | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. /** * Header constants used by the authz pipeline. * * Middleware adds these headers to the upstream request after a successful * auth decision. Route handlers and downstream services read them through * the assertAuth() helper instead of re-running auth logic. * * All header names are lowercase to match Next.js / fetch semantics. * * IMPORTANT: these headers are stripped from incoming client requests * before classification (see pipeline.ts) so a remote caller cannot * pre-populate them and impersonate a privileged subject. */ export const AUTHZ_HEADER_REQUEST_ID = "x-request ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key