Skip to main content

origin_ok

Function origin_ok 

Source
pub fn origin_ok(port: u16, method: &Method, headers: &HeaderMap) -> bool
Expand description

A request that changes something comes from this origin: browsers send Origin on every non-GET fetch, so a cross-site form or script is refused even if it guessed the token.