Skip to main content

is_valid_origin

Function is_valid_origin 

Source
pub fn is_valid_origin(origin: &str) -> bool
Expand description

Whether origin is a bare http(s)://host[:port] web origin: no wildcard, whitespace, credentials, path (including a trailing slash), query, or fragment.