Function static_web_server::security_headers::append_headers
source · pub fn append_headers(resp: &mut Response<Body>)Expand description
It appends security headers like Strict-Transport-Security: max-age=63072000; includeSubDomains; preload (2 years max-age),
X-Frame-Options: DENY and Content-Security-Policy: frame-ancestors 'self'.