Skip to main content

origin_guard

Function origin_guard 

Source
pub async fn origin_guard(
    request: Request,
    next: Next,
) -> Result<Response, StatusCode>
Expand description

Axum middleware that blocks cross-origin requests from browsers.