Skip to main content

refuse_cross_site

Function refuse_cross_site 

Source
pub async fn refuse_cross_site(request: Request<Body>, next: Next) -> Response
Expand description

The webserver’s middleware refusing (403) a write a browser sends from another site: a browser attaches Basic credentials it remembers, or a proxy’s cookie, to any site’s form, so a page elsewhere could act as the person signed in. Requests no browser header marks (the CLI, schedr ui) pass.