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

Taught in

References