pub fn validate_browser_origin(
name: &str,
value: &str,
) -> Result<String, String>Expand description
Validates an exact HTTP(S) origin used for CORS, CSRF, and frontend links.
ยงErrors
Returns an error when the value is empty, not http/https, or includes
credentials, a path, query, or fragment.