Skip to main content

validate_url_scheme

Function validate_url_scheme 

Source
pub fn validate_url_scheme(url: &str) -> Result<()>
Expand description

Validate that the given URL has an allowed scheme (http or https only). Rejects file://, javascript:, data:, blob:, and any other scheme.