security headers
HTTP response headers that switch on browser protections, such as HSTS for HTTPS-only access and X-Frame-Options against framing.
In more detail
Common ones are Content-Security-Policy, X-Content-Type-Options (no guessing of content types), X-Frame-Options (no embedding in other sites' frames) and Strict-Transport-Security (HTTPS only). Missing headers are cheap to catch with an automated probe.
Example
The course's header probe checks four: Content-Security-Policy, X-Content-Type-Options (no guessing of content types), X-Frame-Options (no embedding in other sites' frames) and Strict-Transport-Security (HTTPS only).Related terms
- Content Security Policy — An HTTP response header that tells the browser which sources of scripts and other content a page may load, limiting what injected markup can do.
- HTTP header — A named line of metadata in an HTTP message, such as Content-Type: application/json, that describes the body, the caller or how to handle the exchange.
- server banner — The Server response header, or a similar message, that names the software and version answering the request.
Taught in
- Dynamic Scanning — Application Security & Threat Modeling for Engineers