HTTP Header Analyzer
Paste the response headers from curl or your browser's DevTools to get a security grade, a list of concrete fixes and an explanation of every header.
Last updated
Response headers
Get them with curl -sI https://your-site.com, or copy them from DevTools → Network → a request → Headers.
Security grade
60 / 100
HTTP/2 200
12 headers · 0 to fix · 5 to improve
The grade covers security headers, cookies and CORS. It's a quick health check, not a full audit.
Findings
- Improve
Short HSTS max-age
max-age is 86400 seconds (1 day). Use at least 180 days, ideally one year (31536000).
- Improve
CSP has weak spots
'unsafe-inline' allows inline scripts; scripts may load from any host.
- Improve
MIME sniffing allowed
Add X-Content-Type-Options: nosniff so browsers trust the declared Content-Type.
- Improve
server reveals a version
"nginx/1.24.0" tells attackers exactly which software version to target. Remove the version or the header.
- Improve
Cookie session
no Secure flag; no SameSite (browsers default to Lax).
- Note
No Referrer-Policy
Modern browsers default to strict-origin-when-cross-origin. Set it explicitly to be sure.
- Note
No Permissions-Policy
Optionally disable features you don't use, e.g. camera=(), microphone=(), geolocation=().
- Note
Deprecated X-XSS-Protection
Modern browsers removed the XSS auditor; the old filter could itself be abused. Remove the header or set it to 0, and rely on CSP.
- Note
x-powered-by reveals the stack
"Express" isn't needed by browsers. Consider removing it.
- Note
Public CORS
Any site can read this response. Fine for public APIs and assets, not for user data.
- Note
Caching
Any cache may store it; fresh for 10 minutes.
- Note
No charset
Add a charset, e.g. text/html; charset=utf-8.
- Good
Framing restricted
X-Frame-Options: SAMEORIGIN.
All headers
| date | Sat, 07 Mar 2026 10:15:02 GMT | When the response was generated. |
|---|---|---|
| content-type | text/html | Media type of the body, and its character set. |
| server | nginx/1.24.0 | Web server software. |
| x-powered-by | Express | Framework or platform name — not needed by browsers. |
| cache-control | public, max-age=600 | Caching rules for browsers and CDNs. |
| strict-transport-security | max-age=86400 | Tells browsers to use HTTPS only (HSTS). |
| content-security-policy | default-src 'self'; script-src 'self' 'unsafe-inline' https: | Restricts where scripts, styles, images and frames can load from. |
| x-frame-options | SAMEORIGIN | Whether the page may be shown in a frame (legacy; use CSP frame-ancestors). |
| x-xss-protection | 1; mode=block | Legacy XSS filter switch (deprecated). |
| set-cookie | session=8f2a…; Path=/; HttpOnly | Sets a cookie. |
| access-control-allow-origin | * | CORS: which origins may read this response. |
| vary | Accept-Encoding | Request headers that change the response; caches key on them. |
Keyboard shortcuts:Ctrl ↵Copy reportCtrl SDownload reportCtrl KSearch tools
How to use the HTTP Header Analyzer
Get the headers
Run curl -sI https://your-site.com, or copy them from DevTools → Network → a request → Headers.
Paste them
Paste the raw headers. curl -v output and redirect chains work too; the last response is analysed.
Read the grade
Findings are sorted: what to fix first, what to improve, and what's already good.
Apply the fixes
Each finding says which header to add or change. Copy the report to share it with your team.
Features
- Security grade from A+ to F, based on the headers that protect your users
- Checks Strict-Transport-Security, Content-Security-Policy, X-Frame-Options / frame-ancestors, X-Content-Type-Options, Referrer-Policy and Permissions-Policy
- Spots weak CSP sources: 'unsafe-inline', 'unsafe-eval' and wildcard script hosts
- Checks Set-Cookie flags: Secure, HttpOnly and SameSite
- Flags risky CORS: wildcard origins with credentials and the null origin
- Explains Cache-Control in plain English
- Flags version leaks in Server and X-Powered-By, and the deprecated X-XSS-Protection
- Plain-English descriptions of over 50 common headers
- Accepts curl -I, curl -v and DevTools output, including redirect chains
Privacy
The headers you paste are processed by JavaScript in your browser tab. Nothing is uploaded or stored, and the page's security policy blocks it from sending data to any other site.
Examples
An unhardened PHP site
No security headers, version numbers on show and a session cookie without Secure.
Response headers
HTTP/1.1 200 OK Server: Apache/2.4.41 (Ubuntu) X-Powered-By: PHP/7.4.3 Content-Type: text/html Set-Cookie: PHPSESSID=9f2c…; path=/Report
Grade F (20/100) ✗ No HSTS: Add Strict-Transport-Security: max-age=31536000; includeSubDomains so browsers always use HTTPS. (Browsers ignore it on plain HTTP responses.) ✗ No Content-Security-Policy: A CSP limits where scripts, styles and frames can load from, which blunts XSS. Start with default-src 'self' and loosen it as needed. ! Page can be framed: Without X-Frame-Options or CSP frame-ancestors, other sites can embed this page (clickjacking). Add frame-ancestors 'self' or X-Frame-Options: DENY. ! MIME sniffing allowed: Add X-Content-Type-Options: nosniff so browsers trust the declared Content-Type. i No Referrer-Policy: Modern browsers default to strict-origin-when-cross-origin. Set it explicitly to be sure. i No Permissions-Policy: Optionally disable features you don't use, e.g. camera=(), microphone=(), geolocation=(). ! Server reveals a version: "Apache/2.4.41 (Ubuntu)" tells attackers exactly which software version to target. Remove the version or the header. ! X-Powered-By reveals a version: "PHP/7.4.3" tells attackers exactly which software version to target. Remove the version or the header. ! Cookie PHPSESSID: no Secure flag; no HttpOnly (readable by JavaScript); no SameSite (browsers default to Lax). i No caching headers: Without Cache-Control, browsers and CDNs guess (heuristic caching). Set it explicitly, e.g. no-store for private pages. i No charset: Add a charset, e.g. text/html; charset=utf-8.A well-configured site
HSTS with preload, a strict CSP and every recommended header.
Response headers
HTTP/2 200 content-type: text/html; charset=utf-8 strict-transport-security: max-age=63072000; includeSubDomains; preload content-security-policy: default-src 'self'; object-src 'none'; frame-ancestors 'none'; base-uri 'self' x-content-type-options: nosniff referrer-policy: strict-origin-when-cross-origin permissions-policy: camera=(), microphone=(), geolocation=() cache-control: no-storeReport
Grade A+ (100/100) ✓ HSTS enabled: max-age 730 days, includes subdomains, preload. ✓ CSP set: 4 directives, no unsafe script sources. ✓ Framing restricted by frame-ancestors: frame-ancestors 'none'. ✓ MIME sniffing disabled: X-Content-Type-Options: nosniff. ✓ Referrer-Policy set: strict-origin-when-cross-origin ✓ Permissions-Policy set: Browser features such as camera and geolocation are restricted. i Caching: Never stored by any cache.An API with risky CORS
Wildcard CORS with credentials, and a cookie that browsers will reject.
Response headers
HTTP/2 200 content-type: application/json access-control-allow-origin: * access-control-allow-credentials: true set-cookie: refresh_token=eyJ…; Path=/; SameSite=None cache-control: public, max-age=86400Report
Grade F (0/100) ✗ No HSTS: Add Strict-Transport-Security: max-age=31536000; includeSubDomains so browsers always use HTTPS. (Browsers ignore it on plain HTTP responses.) ✗ No Content-Security-Policy: A CSP limits where scripts, styles and frames can load from, which blunts XSS. Start with default-src 'self' and loosen it as needed. ! Page can be framed: Without X-Frame-Options or CSP frame-ancestors, other sites can embed this page (clickjacking). Add frame-ancestors 'self' or X-Frame-Options: DENY. ! MIME sniffing allowed: Add X-Content-Type-Options: nosniff so browsers trust the declared Content-Type. i No Referrer-Policy: Modern browsers default to strict-origin-when-cross-origin. Set it explicitly to be sure. i No Permissions-Policy: Optionally disable features you don't use, e.g. camera=(), microphone=(), geolocation=(). ✗ Cookie refresh_token: SameSite=None without Secure: Browsers reject SameSite=None cookies that aren't Secure. ! Cookie refresh_token: no Secure flag; no HttpOnly (readable by JavaScript). ✗ Wildcard CORS with credentials: Browsers reject * together with Allow-Credentials: true. Echo a specific, allow-listed origin instead. i Caching: Any cache may store it; fresh for 1 day.
Understanding HTTP response headers
The security headers that matter
| Header | Protects against | Good value |
|---|---|---|
| Strict-Transport-Security | Downgrade to HTTP, cookie theft on public Wi-Fi | max-age=31536000; includeSubDomains |
| Content-Security-Policy | Cross-site scripting (XSS), data injection | default-src 'self' (then loosen as needed) |
| X-Frame-Options / frame-ancestors | Clickjacking | DENY, or frame-ancestors 'self' |
| X-Content-Type-Options | MIME-type confusion | nosniff |
| Referrer-Policy | Leaking URLs to other sites | strict-origin-when-cross-origin |
| Permissions-Policy | Unwanted use of camera, mic, location | camera=(), microphone=(), geolocation=() |
Cookie flags
Secure— sent only over HTTPS. Every cookie on an HTTPS site should have it.HttpOnly— invisible to JavaScript, so an XSS bug can't steal it. Use it for session cookies.SameSite=LaxorStrict— not sent on most cross-site requests, which blocks CSRF.SameSite=Nonemust be paired withSecure.
How to get your headers
# Headers only
curl -sI https://example.com
# Follow redirects and show every hop
curl -sIL https://example.comDevNest doesn't fetch URLs for you: the page can't connect to other sites, so nothing about your site or your network leaves your browser. Headers can differ between pages, so check your login page and API responses too, not just the homepage.
Frequently asked questions
Why paste headers instead of entering a URL?
DevNest runs entirely in your browser and never connects to other sites, so it can't fetch a URL for you. Pasting also works for internal, staging and localhost sites that an online scanner couldn't reach.
How is the grade calculated?
It starts at 100. Each finding marked Fix costs 20 points and each Improve costs 8; notes don't count. A+ is 95 or more, A 85, B 70, C 55, D 40, and anything lower is F.
Do I still need X-Frame-Options if I set CSP frame-ancestors?
Modern browsers use frame-ancestors and ignore X-Frame-Options when both are present. Keeping X-Frame-Options as well only helps very old browsers.
Should I remove X-XSS-Protection?
Yes, or set it to 0. Browsers have removed the XSS auditor it controlled, and in older browsers the filter itself could be abused. A Content-Security-Policy is the modern protection.
Does the grade mean my site is secure?
No. Headers are one layer of defence. A good grade means the browser-side protections are switched on; it says nothing about your application code, server configuration or dependencies.