pub fn validate_origin(value: &str, field: &str) -> Result<(), ValidationError>
Validate an origin: https://host[:port], or http:// for localhost/127.0.0.1/[::1]; no path, query, credentials or trailing slash.
https://host[:port]
http://