Skip to main content

guard

Function guard 

Source
pub async fn guard(
    __arg0: State<GuardState>,
    req: Request,
    next: Next,
) -> Response
Expand description

Rejects a disallowed Origin with 403, then a missing or wrong API key with 401.