HTTP Headers Checker
Inspect your browser's HTTP request headers exactly as servers see them. Check security headers, analyze response headers from any URL, and identify missing security configurations.
What are HTTP headers?
HTTP headers are key-value pairs sent between clients (browsers) and servers with every HTTP request and response. Request headers tell the server about the client — its browser, accepted languages, cookies, and authentication tokens. Response headers tell the browser how to handle the content — caching rules, content type, security policies, and CORS settings.
Headers are invisible to users but decide a surprising amount of behaviour: whether a page may be embedded in an iframe, how long a CDN keeps a file, which origins may call an API, and whether the browser will ever load the site over plain HTTP again.
Why do security headers matter?
Security headers protect your web application from common attacks. Missing or misconfigured security headers are one of the most common findings in penetration tests, and the cheapest to fix — most are a single line of server configuration. The headers checked by the Security Analysis tab, with a safe starting value for each:
| Header | Protects against | Recommended starting value |
|---|---|---|
| Strict-Transport-Security | SSL stripping and accidental HTTP loads | max-age=31536000; includeSubDomains (add preload once everything works over HTTPS) |
| Content-Security-Policy | Cross-site scripting (XSS), injected scripts and styles | Start with default-src 'self' in report-only mode, then allow what the reports show you need. |
| X-Frame-Options | Clickjacking (your site embedded in an invisible iframe) | DENY or SAMEORIGIN; the modern equivalent is CSP frame-ancestors. |
| X-Content-Type-Options | MIME-type sniffing turning uploads into executable scripts | nosniff |
| Referrer-Policy | Leaking full URLs (with tokens or IDs) to third parties | strict-origin-when-cross-origin |
| Permissions-Policy | Unwanted use of camera, microphone, geolocation, payment APIs | camera=(), microphone=(), geolocation=() |
| Cross-Origin-Opener-Policy | Cross-window attacks such as Spectre-style leaks and tab-nabbing | same-origin |
| Cross-Origin-Resource-Policy | Other sites hot-linking or reading your resources | same-site (or cross-origin for public assets) |
What this tool can and cannot see from a browser
- Your request headers are captured by sending a request from your browser to a public echo service (httpbin.org) and displaying what arrived. They are real, but they come from a cross-origin
fetch(): a normal page navigation additionally sendsCookie,Accept: text/html…andSec-Fetch-Mode: navigate. - Response headers of another site are only readable when that site allows cross-origin requests (CORS). Without an
Access-Control-Allow-Originheader the browser hides the response entirely, and even with it, only a safelisted subset is exposed unless the server addsAccess-Control-Expose-Headers. - Set-Cookie and Authorization are never exposed to JavaScript, by design.
- For the full picture use your browser's DevTools (F12 → Network → click the request → Headers),
curl -I https://example.com, or a server-side scanner such as securityheaders.com or Mozilla Observatory.
Common header problems and what they look like
| Console or browser message | Header involved | Fix |
|---|---|---|
| "blocked by CORS policy: No 'Access-Control-Allow-Origin' header" | Access-Control-Allow-Origin | Have the API return the calling origin (not * if cookies are involved) and answer OPTIONS preflights. |
| "Refused to display … in a frame" | X-Frame-Options / CSP frame-ancestors | Intentional on most sites; allow specific parent origins with frame-ancestors https://partner.example if embedding is required. |
| "Refused to load the script … violates Content Security Policy" | Content-Security-Policy | Add the script's origin to script-src, or move inline code to a file; avoid 'unsafe-inline'. |
| Site keeps redirecting to HTTPS after you disabled it | Strict-Transport-Security | Browsers remember HSTS for max-age seconds; clear it in chrome://net-internals/#hsts and lower the value before testing. |
| Old file served after a deploy | Cache-Control / ETag | Fingerprint asset filenames and send Cache-Control: no-cache for HTML, long max-age, immutable for hashed assets. |
What is CORS and how do CORS headers work?
CORS (Cross-Origin Resource Sharing) headers control which external domains can make requests to your API or web service from a browser. The key headers are: Access-Control-Allow-Origin (which domains can access the resource), Access-Control-Allow-Methods (which HTTP methods are allowed), and Access-Control-Allow-Headers (which request headers are permitted).
CORS errors are one of the most common issues when building frontend applications that connect to APIs. The Response Headers tab shows the exact CORS headers returned by any URL that permits cross-origin reads, helping you diagnose cross-origin issues without needing to write test code.