Skip to main content

apply_security_headers

Function apply_security_headers 

Source
pub async fn apply_security_headers(req: Request, next: Next) -> Response
Expand description

Apply all configured security headers to every response.

Registered automatically by App::launch as the outermost layer.