Skip to main content

browser_same_origin

Function browser_same_origin 

Source
pub fn browser_same_origin(headers: &HeaderMap) -> Option<bool>
Expand description

Whether a browser says a request comes from the page’s own origin: Sec-Fetch-Site (same-origin, or none: typed by the user), else an Origin whose host is the request’s (X-Forwarded-Host behind a proxy; default ports aside). None when neither header is there: not a browser’s request (a CLI, schedr ui), or an old browser’s GET.