Why browser checks are limited
A web page cannot freely read another origin's response headers. The target must opt in with Access-Control-Allow-Origin, and only CORS-safelisted or explicitly exposed headers are available to JavaScript. A network error can therefore mean “the server blocked browser access,” not “the server has no security headers.”
Headers covered
- Content-Security-Policy: controls which resources a document may load and where it may send data.
- Strict-Transport-Security: tells browsers to use HTTPS for a period of time; only meaningful when delivered over HTTPS.
- X-Content-Type-Options:
nosniffreduces MIME-type confusion. - Referrer-Policy: limits how much referrer information leaves a page.
- Permissions-Policy: restricts browser features such as camera, microphone and geolocation.
- Cross-Origin-Opener-Policy and Cross-Origin-Resource-Policy: help isolate browsing contexts and control cross-origin resource use.
How the conversion runs
You enter a URL and the page issues one fetch() with mode:'cors', credentials:'omit', redirect:'follow' and cache:'no-store', then reads the response headers. check() tests for CSP, HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy and Permissions-Policy, evaluates the values against common expectations, and renderRows() tabulates the findings with a risk level. escapeHtml() keeps header values from being interpreted as markup.
Edge cases and hard limits
Same-origin policy is the hard limit: if the target does not send permissive CORS headers, the browser refuses to expose the response and you get "cannot read headers" — that is a read restriction, not a missing header. Only the final response is visible, so headers set on intermediate redirect hops are invisible. The tool checks presence and common values, not whether a CSP is actually strong. Private network addresses are usually blocked outright.
Privacy: processed in your browser
The request goes from your browser to the site you typed, which sees your IP; this site’s server is not involved and does not log which hosts you checked.
Frequently asked questions
Why can it not read the headers?
Because the target does not allow cross-origin reads. Use curl or a server-side tool when you need the full header set.
Can it check an internal host?
Usually not — browsers block cross-origin requests to private address ranges, so the page never receives a response to inspect.
Does a CSP mean the site is safe?
No. This only checks that the header exists and looks plausible; whether it contains unsafe-inline or misses key directives needs a human read.