origin_allowed

Function origin_allowed 

Source
pub fn origin_allowed(headers: &HeaderMap, ws: &RouteWebsocket) -> bool
Expand description

The origin gate: true when the handshake may proceed. A non-empty allowlist admits only exact matches; a missing Origin is denied under a non-empty allowlist (fail closed).