Security Headers Reference
A plain-English list of the HTTP response headers that harden a website, such as HSTS, Content-Security-Policy and X-Frame-Options, with the example values from the OWASP Secure Headers Project and a link to the standard behind each one. Paste your own headers to see which are set, missing or outdated. It is a checklist, not a security audit.
Check headers you paste
Copy the response headers from your browser (Developer tools, Network tab, click the page request, Response headers) or from curl -I https://your-site, and paste them here. Nothing is fetched or sent; the page only reads the text.
Security headers reference
Example values come from the OWASP Secure Headers Project (list updated 2026-10-18, read by us on 2026-11-20). Each header links to the document that defines it. Read the cautions before copying: several values are deliberately strict.
Strict-Transport-Security
Tells browsers to use only HTTPS for this site for the given number of seconds, so a later visit cannot be downgraded to plain HTTP.
Strict-Transport-Security: max-age=63072000; includeSubDomainsCaution: Only send it over HTTPS, and add includeSubDomains only when every subdomain works over HTTPS. max-age=0 switches it off.
Defined by: IETF RFC 6797: HTTP Strict Transport Security (HSTS) · MDN: Strict-Transport-Security · Last checked 2026-11-20
Content-Security-Policy
Lists where scripts, styles, images, frames and other resources may load from. A strict policy is the main browser-side defence against cross-site scripting (XSS).
Content-Security-Policy: default-src 'self'; form-action 'self'; base-uri 'self'; object-src 'none'; frame-ancestors 'none'; upgrade-insecure-requestsCaution: The OWASP value is a strict starting point that will block third-party scripts, fonts or analytics until you list them. Test with Content-Security-Policy-Report-Only first.
Defined by: W3C Content Security Policy Level 3 · MDN: Content-Security-Policy · Last checked 2026-11-20
X-Content-Type-Options
Stops browsers from guessing ("sniffing") a file type different from the Content-Type you sent, for example running a text upload as a script.
X-Content-Type-Options: nosniffDefined by: WHATWG Fetch Standard: X-Content-Type-Options header · MDN: X-Content-Type-Options · Last checked 2026-11-20
X-Frame-Options
Stops other sites from showing your pages inside a frame, which protects against clickjacking. DENY blocks all framing; SAMEORIGIN allows your own site.
X-Frame-Options: denyCaution: The CSP directive frame-ancestors does the same job and takes priority in browsers that support it; keep X-Frame-Options for older browsers. ALLOW-FROM is not supported by current browsers.
Defined by: IETF RFC 7034: HTTP Header Field X-Frame-Options · MDN: X-Frame-Options · Last checked 2026-11-20
Referrer-Policy
Controls how much of the current address is sent to other sites when a visitor follows a link or loads a resource, so private paths and query strings do not leak.
Referrer-Policy: no-referrerCaution: no-referrer hides the referrer from your own analytics and partners too; strict-origin-when-cross-origin is the browser default and a common middle ground.
Defined by: W3C Referrer Policy · MDN: Referrer-Policy · Last checked 2026-11-20
Permissions-Policy
Switches off browser features your site does not use (camera, microphone, location, payment and so on), so injected or embedded code cannot use them either.
Permissions-Policy: accelerometer=(), autoplay=(), camera=(), cross-origin-isolated=(), display-capture=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(self), usb=(), web-share=(), xr-spatial-tracking=(), clipboard-read=(), clipboard-write=(), gamepad=(), hid=(), idle-detection=(), interest-cohort=(), serial=(), unload=()Caution: Remove a feature from the list, or allow it for self, if your site really uses it (for example camera=(self) for a scanner page).
Defined by: W3C Permissions Policy · MDN: Permissions-Policy · Last checked 2026-11-20
Cross-Origin-Opener-Policy
Puts your page in its own browsing context group, so a window opened from another site cannot script it. Part of the protection against Spectre-style side-channel attacks.
Cross-Origin-Opener-Policy: same-originCaution: same-origin breaks sign-in or payment pop-ups that talk back to your page; same-origin-allow-popups is the usual compromise.
Defined by: WHATWG HTML Standard: Cross-origin opener policies · MDN: Cross-Origin-Opener-Policy · Last checked 2026-11-20
Cross-Origin-Embedder-Policy
Allows the page to load cross-origin resources only if they explicitly agree (CORP or CORS). Together with COOP it makes the page "cross-origin isolated".
Cross-Origin-Embedder-Policy: require-corpCaution: Images, scripts and frames from other sites that do not send CORP or CORS headers will stop loading. Use only when you need cross-origin isolation or have checked every resource.
Defined by: WHATWG HTML Standard: Cross-origin embedder policies · MDN: Cross-Origin-Embedder-Policy · Last checked 2026-11-20
Cross-Origin-Resource-Policy
Tells browsers which sites may embed this resource (image, script, file). same-origin stops other sites from loading it at all.
Cross-Origin-Resource-Policy: same-originCaution: Files meant for other sites, such as a public CDN or embeddable images, need same-site or cross-origin instead.
Defined by: WHATWG Fetch Standard: Cross-Origin-Resource-Policy header · MDN: Cross-Origin-Resource-Policy · Last checked 2026-11-20
Cache-Control
For pages with personal or sensitive data: tells browsers and shared caches not to store a copy, so the next user of a shared computer cannot see it.
Cache-Control: no-store, max-age=0Caution: Meant for sensitive responses only. Public pages, images and scripts load faster when they can be cached.
Defined by: IETF RFC 9111: HTTP Caching, Cache-Control · MDN: Cache-Control · Last checked 2026-11-20
Clear-Site-Data
Tells the browser to delete this site’s cached files, cookies and stored data. Typically sent once, on the response to a logout request.
Clear-Site-Data: "cache","cookies","storage"Caution: Do not send it on every page: it logs the visitor out and empties storage each time.
Defined by: W3C Clear Site Data · MDN: Clear-Site-Data · Last checked 2026-11-20
X-DNS-Prefetch-Control
Stops browsers from looking up the domain names of links on the page in advance, which can reveal to DNS servers which links a page contains.
X-DNS-Prefetch-Control: offCaution: Not part of any standard; it trades a small speed-up for privacy.
Defined by: Non-standard header (no specification); described by MDN · OWASP HTTP Headers Cheat Sheet · Last checked 2026-11-20
X-Permitted-Cross-Domain-Policies
Tells Adobe products such as Acrobat (and formerly Flash) not to load cross-domain policy files from your site, so they cannot be used to read your data from another domain.
X-Permitted-Cross-Domain-Policies: noneDefined by: Adobe cross-domain policy (no IETF/W3C specification); see OWASP · OWASP HTTP Headers Cheat Sheet · Last checked 2026-11-20
X-XSS-Protection
Do not useControlled an old cross-site scripting filter in some browsers. Modern browsers have removed the filter, and in older ones it could itself create security problems.
Do not set it, or send 0 to switch it off. Use Content-Security-Policy instead.
Defined by: Non-standard header (no specification); described by MDN · OWASP HTTP Headers Cheat Sheet · Last checked 2026-11-20
Expect-CT
Do not useAsked browsers to require Certificate Transparency for the site. It is deprecated.
Do not use it. Certificate Transparency is now enforced by browsers without this header.
Defined by: IETF RFC 9163: Expect-CT Extension for HTTP (Experimental, now deprecated) · OWASP HTTP Headers Cheat Sheet · MDN: Expect-CT · Last checked 2026-11-20
Public-Key-Pins
Do not useHTTP Public Key Pinning (HPKP) told browsers to accept only certain keys for the site. A mistake could lock visitors out for months, and browsers dropped support.
Do not use it; remove Public-Key-Pins and Public-Key-Pins-Report-Only from production.
Defined by: IETF RFC 7469: Public Key Pinning Extension for HTTP · OWASP HTTP Headers Cheat Sheet · Last checked 2026-11-20
Feature-Policy
Do not useThe earlier name and syntax of Permissions-Policy.
Replaced by Permissions-Policy (above). Send Permissions-Policy instead.
Defined by: W3C Permissions Policy (replaces Feature Policy) · MDN: Permissions-Policy · Last checked 2026-11-20
All OWASP example values as server config
A starting point to adapt, not to paste blindly: the strict CSP, COEP and Cache-Control values will break or slow down many sites as they are. Clear-Site-Data is left out because it belongs only on the logout response.
Strict-Transport-Security: max-age=63072000; includeSubDomains Content-Security-Policy: default-src 'self'; form-action 'self'; base-uri 'self'; object-src 'none'; frame-ancestors 'none'; upgrade-insecure-requests X-Content-Type-Options: nosniff X-Frame-Options: deny Referrer-Policy: no-referrer Permissions-Policy: accelerometer=(), autoplay=(), camera=(), cross-origin-isolated=(), display-capture=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(self), usb=(), web-share=(), xr-spatial-tracking=(), clipboard-read=(), clipboard-write=(), gamepad=(), hid=(), idle-detection=(), interest-cohort=(), serial=(), unload=() Cross-Origin-Opener-Policy: same-origin Cross-Origin-Embedder-Policy: require-corp Cross-Origin-Resource-Policy: same-origin Cache-Control: no-store, max-age=0 X-DNS-Prefetch-Control: off X-Permitted-Cross-Domain-Policies: none
About Security Headers Reference
Every web page arrives with a set of HTTP response headers. A handful of them tell the browser to switch on protections: always use HTTPS, refuse to run scripts from unknown hosts, do not let other sites frame the page. They cost nothing to add, yet many sites miss some of them. This page collects them in one place and lets you compare your own site against the list.
Where the values come from
The example values are copied from the OWASP Secure Headers Project, which publishes a maintained list as a data file. We record the date of that list and the date we last read it. Each header also links to the document that defines it: an IETF RFC for HSTS and X-Frame-Options, W3C specifications for Content-Security-Policy, Referrer Policy and Permissions Policy, and the WHATWG Fetch and HTML standards for nosniff and the cross-origin policies. A few headers have no formal standard, and their cards say so.
Checking your site
Open your site, press F12, choose the Network tab, reload, click the first request and copy the response headers. Or run curl -I https://example.com in a terminal. Paste the result. Each recommended header is marked Set, Missing, Check or Problem, with a short reason. For example, max-age=0 in HSTS is a problem because RFC 6797 says it tells browsers to forget the HTTPS rule, and X-Frame-Options: ALLOW-FROM is flagged because current browsers ignore it.
The checker also lists outdated headers such as X-XSS-Protection and Expect-CT, and headers like Server or X-Powered-By that announce your software version.
Why it is not an audit
A perfect score here does not make a site safe. The checker cannot tell whether your policy fits your pages, and it knows nothing about your code or server. Some OWASP values are strict on purpose: the sample policy blocks every third-party script, and Cross-Origin-Embedder-Policy: require-corp stops images from other sites that do not opt in. Roll changes out on a test copy first.
The encryption settings behind HTTPS itself are covered in the TLS Configuration Reference.
How to use Security Headers Reference
- Copy the response headers from your browser’s developer tools or from curl -I and paste them in.
- Read which recommended headers are set, missing or have a value worth checking.
- Use the reference cards and the config snippet to add what is missing, reading each caution first.
Privacy: how it works
Everything happens in your browser. The headers you paste are not sent anywhere, and no website is contacted.
Frequently asked questions
Does this scan my website?
No. Browsers do not let one site read another site’s headers, and this page makes no network requests. It only reads the text you paste, so it works for internal and staging sites too.
If every header is green, is my site secure?
No. Headers are one layer of defence. The checker cannot judge whether your Content-Security-Policy really fits your site, and it says nothing about your code, server or passwords. Treat it as a checklist, not an audit.
Where do the recommended values come from?
From the machine-readable list published by the OWASP Secure Headers Project (updated 18 October 2026, checked by us on 20 November 2026). Each card also links to the IETF, W3C or WHATWG document that defines the header.