Skip to main content

origin_allowed

Function origin_allowed 

Source
pub fn origin_allowed(headers: &HeaderMap, extras: &[String]) -> bool
Expand description

Returns true when the request’s Origin header is on the default allow-list, on the extras list (verbatim match), or absent. Used by the /mcp handler as the first gate before bearer auth.