Skip to main content

validate_origin

Function validate_origin 

Source
pub fn validate_origin(value: &str, field: &str) -> Result<(), ValidationError>
Expand description

Validate an origin: https://host[:port], or http:// for localhost/127.0.0.1/[::1]; no path, query, credentials or trailing slash.