Skip to main content

validate_origin_with

Function validate_origin_with 

Source
pub fn validate_origin_with(
    raw: &str,
    allow_loopback: bool,
) -> AppResult<AllowedOrigin>
Expand description

Parse an origin with an explicit loopback policy (CLI/XDG allow_loopback).

ยงErrors

Propagates crate::error::ErrorKind::Config from AllowedOrigin::parse_with.