Skip to content
Esc
  • MQTT Topic MatcherTest MQTT topic filters with + and # wildcards against topics, and check ACL patterns.
  • JSON FormatterBeautify, minify and validate JSON instantly as you type.
  • JSON DiffCompare two JSON documents and see every added, removed and changed value by path.
  • JSON to TypeScriptGenerate TypeScript interfaces or Zod schemas from a sample JSON response.
  • Base64 Encoder/DecoderConvert text to Base64 and back, with full Unicode support.
  • UUID GeneratorGenerate random v4 UUIDs — one or many — in the format you need.
  • JWT DecoderDecode JSON Web Tokens to inspect the header, payload and expiry.
  • Timestamp ConverterConvert Unix timestamps to dates and dates to timestamps.
  • URL Encoder/DecoderPercent-encode and decode URLs, and break down query strings.
  • Hash GeneratorGenerate MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files.
  • Regex TesterTest regular expressions with live match highlighting and groups.
  • YAML to JSON ConverterConvert YAML to JSON and JSON to YAML, with clear error locations.
  • SQL FormatterBeautify or minify SQL for PostgreSQL, MySQL, SQL Server and 9 more dialects.
  • Mock Data GeneratorGenerate realistic fake data for API mocks as JSON, CSV or SQL inserts.
  • HTTP Header AnalyzerGrade response headers: CSP, HSTS, cookies, CORS and caching, explained.
  • Webhook Signature VerifierVerify and generate webhook signatures for GitHub, Stripe, Slack, Shopify and more.
  • Cron Expression GeneratorBuild and explain cron schedules, with the next run times in any time zone.
  • .env File ValidatorFind syntax errors, duplicates and missing keys in .env files.
  • HTML to JSX ConverterConvert HTML to valid React JSX: className, style objects, self-closing tags.
  • SVG to React ComponentTurn SVG files into React icon components with props and currentColor.
  • Markdown EditorWrite Markdown with a live preview, GitHub tables and task lists, and HTML export.

↑ ↓ to moveEnter to openPaste data to open it in the right tool. Nothing leaves your browser.

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

C

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

dateSat, 07 Mar 2026 10:15:02 GMT
content-typetext/html
servernginx/1.24.0
x-powered-byExpress
cache-controlpublic, max-age=600
strict-transport-securitymax-age=86400
content-security-policydefault-src 'self'; script-src 'self' 'unsafe-inline' https:
x-frame-optionsSAMEORIGIN
x-xss-protection1; mode=block
set-cookiesession=8f2a…; Path=/; HttpOnly
access-control-allow-origin*
varyAccept-Encoding

How to use the HTTP Header Analyzer

  1. Get the headers

    Run curl -sI https://your-site.com, or copy them from DevTools → Network → a request → Headers.

  2. Paste them

    Paste the raw headers. curl -v output and redirect chains work too; the last response is analysed.

  3. Read the grade

    Findings are sorted: what to fix first, what to improve, and what's already good.

  4. 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.

Read the DevNest privacy policy

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-store

    Report

    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=86400

    Report

    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

HeaderProtects againstGood value
Strict-Transport-SecurityDowngrade to HTTP, cookie theft on public Wi-Fimax-age=31536000; includeSubDomains
Content-Security-PolicyCross-site scripting (XSS), data injectiondefault-src 'self' (then loosen as needed)
X-Frame-Options / frame-ancestorsClickjackingDENY, or frame-ancestors 'self'
X-Content-Type-OptionsMIME-type confusionnosniff
Referrer-PolicyLeaking URLs to other sitesstrict-origin-when-cross-origin
Permissions-PolicyUnwanted use of camera, mic, locationcamera=(), 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=Lax or Strict — not sent on most cross-site requests, which blocks CSRF. SameSite=None must be paired with Secure.

How to get your headers

# Headers only
curl -sI https://example.com

# Follow redirects and show every hop
curl -sIL https://example.com

DevNest 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.