Security Headers
security
Security headers are HTTP response directives — HSTS, X-Content-Type-Options, frame options, referrer policy — that instruct browsers to enforce safer behaviour. They are cheap, high-value hardening.
Serve HSTS, nosniff, frame-ancestors and referrer policy on every response; verify with a header checker.
Adding X-Frame-Options: DENY stopped a clickjacking attempt against a payment page.
Related topics
Frequently asked question
What is Security Headers?
Security headers are HTTP response directives — HSTS, X-Content-Type-Options, frame options, referrer policy — that instruct browsers to enforce safer behaviour. They are cheap, high-value hardening. Serve HSTS, nosniff, frame-ancestors and referrer policy on every response; verify with a header checker.
Read the full answer