Skip to main content

origin_allowed

Function origin_allowed 

Source
pub fn origin_allowed(req: &Request) -> bool
Expand description

A cookie-authenticated upgrade must come from a page on this site. A bearer token is not sent by browsers on their own, so it needs no Origin.