Article
How to read a security headers report (without fixing the wrong thing)
Published 2026-11-26
How to read a security headers report (without fixing the wrong thing)
You ran a scan. You got a grade. Maybe an A, maybe an F with a wall of red lines, maybe something in between with warnings you cannot parse. The report is sitting open in a browser tab and you are not sure what actually matters in it.
This article is about reading one. Not which headers to set (there are separate articles for CSP, HSTS, Referrer-Policy and frame protection linked at the end), but how to interpret what a scanner actually tells you: what a finding means, what it does not mean, and the order I would fix things in if the report landed on my desk today.
What the report actually is
A security headers report is the result of one request to one URL at one point in time. The scanner sent an HTTP request, wrote down what came back, and compared the response against a list of headers it expects a well-configured site to send.
That sentence contains three limitations worth keeping in mind:
- It observed one URL. Headers set at the application level often differ between routes; the homepage may send a full CSP while an AJAX endpoint, an error page or a legacy path does not. Different pages, different findings.
- It observed one moment. A deploy yesterday, a CDN rule flipped this morning, a cache layer with a TTL: the report describes what was true when the request ran. Re-scan after you change something and the results can move.
- It saw the public, unauthenticated response. A scanner does not log in. Headers that only appear for signed-in users, cookies set during a session, anything behind auth: not in the report, not checked.
None of this makes the report useless. It makes it a snapshot, and snapshots are exactly what you need for configuration work. But a scan report is evidence about configuration, not proof of safety, and treating a green grade as "secure" is how A-grades end up attached to compromised sites. An A means the scanner found none of the issues it looks for, under its rules, on that URL. That is all an A means.
The headers scanners look for, and what each one is actually telling you
Most scanners check roughly the same set. Here is the honest version of what each finding means.
Missing Content-Security-Policy. The scanner looked for a CSP header and found none. A CSP is the only header that restricts what scripts and other resources a page may load, so a missing one means an injected <script> tag has no policy standing in its way. It is the highest-effort fix on the list and the one I would least often skip: no other header does this job. But it is also the one most likely to break a real site if copied blindly from a blog post, because every policy has to allow what the site actually loads. Start with Content-Security-Policy-Report-Only, watch the console, enforce when the reports are quiet. MDN documents the directives and the report-only mode.
Missing Strict-Transport-Security. No HSTS means the first request to http://yourdomain relies on a redirect. The redirect works fine for the request itself, but on an open network the first plain HTTP request can be answered before the redirect ever runs: that is the gap HSTS closes, by telling browsers never to make that first plain request again. If the report shows an HSTS finding, check the max-age it observed; a max-age of a day is a testing value, not a policy. This header commits you: read the preload consequences before turning it up. The preload list is a one-way door with a removal process measured in months.
Missing X-Content-Type-Options: nosniff. Small finding, cheap fix. Without it, a browser may guess the content type of a response instead of trusting the declared one, which turns an uploads folder that holds a file named image.jpg containing script into a script-execution problem. One line in the server config. The header is documented in MDN and its behavior comes from what was once an Internet draft; support is universal in modern browsers, so there is no compat argument against it.
X-Frame-Options or frame-ancestors. The scanner checks whether another site can embed yours in an iframe. Without frame protection, a page can be placed inside a hostile page in a clickjacking setup. Two mechanisms exist and browsers resolve them in a defined order when both are sent; if the report flags framing, read the dedicated article before choosing, because the two headers are not interchangeable and ALLOW-FROM protects nothing. I would set frame-ancestors in CSP and drop X-Frame-Options to a backup role.
Missing Referrer-Policy. Without it, browsers default to strict-origin-when-cross-origin, which sends your full URL path to same-origin requests and strips to origin on cross-origin. Not a crisis by default in modern browsers, but URLs in paths can contain tokens or identifiers, so the fix is one line and worth doing. Eight policy values exist and they are not all sane choices; some strip everything (breaks analytics), some send the full URL everywhere (worse than default). The article on Referrer-Policy has the table.
Missing Permissions-Policy. This header declares which features (camera, microphone, geolocation, payment) the page may use. The default without it is per-feature, and most sites use none of the sensitive ones, so a missing Permissions-Policy is more often noise than signal on a simple site. Set it if your site genuinely uses a camera or payments integration; otherwise it is a hardening line item, not an emergency.
Server version banners (Server: nginx/1.x.x, X-Powered-By: PHP/8.2.x). The scanner flags these as information disclosure. My honest take: hide them if it is free (one line in nginx or expose_php = Off), but do not confuse removing the banner with removing the vulnerability. Version banners help an attacker pick a CVE to try; they do not unlock anything. Patching the software matters more than silencing the banner, and a scanner that scores a site down hard for a banner while your packages are out of date is telling you about its scoring model, not your risk.
Grading models are the scanner's opinion, not a standard
Every scanner has its own scoring. One popular scanner starts at 100 and deducts fixed points per missing header, which means a site with one serious exposure and a clean header set can outscore a hardened site missing two minor ones. Read the grade as a change-tracking number: scan, fix, re-scan, watch the number move. Do not read it as a percentage of secure.
The other thing grades hide is severity asymmetry. The deduction for a missing CSP and the deduction for a missing nosniff may be the same number of points, but the first is a real control gap and the second is a hardening line item. When two findings cost the same points and protect wildly different things, the number is a sorting mechanism at best.
There is a meta-level to this too. A report that grades down for a missing header the site deliberately does not send (say, frame protection on a site that is intentionally embeddable, or COOP/COEP on a site with no cross-origin isolation needs) is describing a defaults checklist, not your site. Defaults checklists are useful for the long tail of sites with no security budget. They are a blunt instrument for yours.
How to read an individual finding
Most reports follow the same anatomy. Read them in this order:
- What was observed. The raw evidence: the response headers the scanner saw, the exact URL, the status code. This is the only part of the finding that is a fact.
- Why the scanner flagged it. The rule it applied. Usually a phrase like "X-Content-Type-Options header was not set". Fine.
- What it claims could happen. Impact language. This is where scanners drift from fact into marketing, and the distance between the two is worth noticing.
- The remediation. The config snippet. Apply judgment: snippets are written for default setups and will conflict with your real config at least once.
The evidence step is the one people skip and the one that matters most, because headers are set at layers, and the layer that should own the header is not always the layer that answers the request. When the report says a header is missing but you are sure you set it, the usual suspects are:
- A proxy or CDN stripping or overriding headers in front of your origin (Cloudflare and friends have their own header handling, and transform rules run on the way out as well as the way in).
- Two layers both setting the same header, producing a duplicated or mangled response. One owner per header; find the duplicate.
- The app sets the header on the document response but not on static assets or error responses. Scanners compare the document; browsers do not distinguish.
- A cache still serving the old response. Purge before you re-scan, or you will fix a problem you already fixed and learn nothing.
One more thing that belongs in this section: the scanner checked one URL, and you own many. Before treating a finding as site-wide, check the same header on a second URL yourself. curl -sI https://example.com/some/inner/page | grep -i strict settles the question in one line, and a discrepancy between the two tells you where the header is actually being set.
The fix order I would actually use
Reports list findings alphabetically or by points. Neither is a fix order. If a report landed on my desk with the usual mix, this is the order I would work it:
- Transport first. If HTTPS is broken, missing, or the HTTP redirect is absent, nothing else in the report matters until that is fixed. A site that still answers on plain HTTP is exposed to interception on every untrusted network, and the rest of the headers are decoration on top of that hole.
- Cookies next, if the scan saw them. Session cookies without
SecureandHttpOnlyare a direct credential theft vector, higher stakes than any header in this list. Scanners only see cookies the public page sets, so also check the login response in DevTools where the session cookie is actually issued. - CSP. The biggest real control on the list, and the only one that constrains what happens after injection succeeds. High effort, high value. Report-Only first, always.
- HSTS with a sane max-age. Cheap once the HTTPS side is solid, and it kills the first-request gap permanently. Preload later, if ever, and deliberately.
- The one-liners.
nosniff, Referrer-Policy, frame protection. These are single lines in the server config and there is no reason to batch them across a quarter. - Banners last.
expose_php = Off, server_tokens off. Hygiene, not defense.
The honest exception to this order: a report can contain one finding that is not a header finding at all. An exposed .git directory, a readable backup file, a directory listing, an accessible phpinfo page. If your report has one of those, stop working the header list, because that is a data exposure question and the headers can wait the hour it takes to move the file and rotate what it contained.
What "pass" does and does not tell you
A pass on a check means the scanner observed the expected header on that URL. It does not mean the header is doing its job. A CSP full of unsafe-inline and * passes the presence check while protecting approximately nothing. An HSTS with max-age=0 is present and actively tells browsers to forget the policy. Presence is what a scanner can verify from the outside; effectiveness is what you verify by reading the actual value and testing the behavior.
The test that matters is a behavioral one. For CSP: open DevTools console on your real pages and confirm no violation reports appear with the enforced policy in place. For framing: try to embed your own page in a local HTML file and confirm the browser blocks it. For HSTS: visit the http:// URL in a browser that has seen the https:// one and confirm it never touches plain HTTP. A scanner cannot do any of these for you. It watches; you verify.
The part where the report ends and the work starts
Run the scan again after each fix, not once at the end. The reason is not ceremony: a header added at the wrong layer silently disappears on the next request, a CSP that works on the homepage breaks a third-party checkout on another page, and the only way any of this becomes visible is comparing scans of the same URLs taken minutes apart. Track the grade across re-scans if the number motivates your team; just remember what the number is.
And keep the report to the public side. Scanners do not log in, do not crawl authenticated areas, and cannot see whether your packages are patched or your admin area is protected. A clean public scan plus an unpatched dependency is a compromised site waiting for its turn, and no header grade will mention that.
CheckWebSecurity's scan reports the header set you actually send, alongside the exposure checks that matter more when they fire: readable config files, exposed directories, leftover backup files, TLS configuration, and certificate expiry. Run a scan and read the report against this article; the findings section is where the fix order above starts.
Related: Content Security Policy explained in plain terms · HSTS explained in plain terms · Referrer-Policy explained: what your URLs say when they leave · X-Frame-Options vs frame-ancestors · Mixed content: how to find every instance