Skip to main content

origin_is_allowed

Function origin_is_allowed 

Source
pub fn origin_is_allowed(origin: &HeaderValue, allowed: &[HeaderValue]) -> bool
Expand description

Returns true if origin matches any entry in allowed. Supports bare * (any origin), exact match, and wildcard subdomains (*.example.com).