Skip to main content

validate_cachekitio_url

Function validate_cachekitio_url 

Source
pub fn validate_cachekitio_url(
    url_str: &str,
    allow_custom_host: bool,
) -> Result<(), CachekitError>
Expand description

Validate that a CachekitIO API URL uses HTTPS, is not a private IP (SSRF protection), and matches the allow-list unless allow_custom_host is set.