Skip to main content
TOP free online tools Your Workbench
English

HTTP Header Security & Caching Auditor

Audit pasted HTTP response headers 100% locally for HSTS, CSP, X-Frame-Options, Referrer-Policy, Permissions-Policy, Set-Cookie, COOP/CORP, and Cache-Control.

Local browser processing — zero server uploads
Samples:
100% client-side · zero network requests
F
Security Grade (4/100)
0Passed
3Warnings
7Failures
HeaderStatusObservedFinding & Fix
Strict-Transport-Security
Security
failMissing
HTTPS enforcement header is absent, allowing downgrade or SSL-stripping risks.
Set max-age to at least 31536000 (1 year) with includeSubDomains.
Content-Security-Policy
Security
faildefault-src * 'unsafe-inline' 'unsafe-eval'
CSP permits 'unsafe-eval', weakening XSS protection.
Remove 'unsafe-eval', wildcards, and http:// sources; use nonces/hashes.
X-Frame-Options
Security
failMissing
Missing clickjacking protection (neither X-Frame-Options nor CSP frame-ancestors).
Set X-Frame-Options: DENY (or SAMEORIGIN).
X-Content-Type-Options
Security
failMissing
Browser MIME-type sniffing is not disabled.
Set X-Content-Type-Options: nosniff.
Referrer-Policy
Security
failMissing
Referrer-Policy header is missing.
Set Referrer-Policy: strict-origin-when-cross-origin.
Permissions-Policy
Security
warnMissing
Permissions-Policy is not set to restrict powerful browser APIs.
Restrict camera, microphone, geolocation, and payment APIs.
Set-Cookie
Cookies
failsession=abc123; Path=/
session missing Secure, HttpOnly, SameSite
Add Secure; HttpOnly; SameSite=Lax (or Strict) to every sensitive cookie.
COOP / CORP
Isolation
warnMissing
Cross-Origin-Opener-Policy and Cross-Origin-Resource-Policy are absent.
Add COOP: same-origin and CORP: same-origin to isolate browsing contexts.
Cache-Control
Caching
failpublic, max-age=600
Response sets cookies while marking Cache-Control as public (risk of shared cache leak).
Switch to Cache-Control: private, no-store when setting user cookies.
Server / X-Powered-By
Leakage
warnServer: Apache/2.4.49 (Unix); X-Powered-By: PHP/8.1.2
Runtime or server version fingerprint exposed in response headers.
Strip X-Powered-By and omit exact software version numbers from Server.

How to Use

  1. Copy raw HTTP response headers from curl -I or browser DevTools and paste them into the input box.
  2. Review your overall A+ to F grade, pass/warn/fail metrics, and the per-header diagnostic table.
  3. Click Copy Remediation Headers or Download Report to apply the recommended hardening fixes.

What is HTTP Header Security & Caching Auditor?

The HTTP Header Security & Caching Auditor is a 100% client-side analyzer that scores raw HTTP response headers from A+ to F without scanning external servers or exposing internal staging endpoints. It catches missing transport hardening, weak Content-Security-Policy directives, insecure cookie flags, missing cross-origin isolation, and risky caching combinations.

How It Works

When you paste response headers from curl -I or browser DevTools Network tabs, the pure TypeScript parser extracts status lines, multi-line Set-Cookie entries, and header values case-insensitively. Ten weighted security, isolation, leakage, and caching checks score the configuration and assemble a ready-to-copy remediation header block for every failing or warning item.

Common Use Cases

  • Auditing local development or private staging HTTP headers that external online scanners cannot reach
  • Spotting dangerous Content-Security-Policy directives such as 'unsafe-eval', 'unsafe-inline', or wildcard *
  • Verifying that session Set-Cookie headers enforce Secure, HttpOnly, and SameSite attributes
  • Checking CDN Cache-Control and stale-while-revalidate policies against cookie leakage risks
Technical Details

Zero-network static parser supporting HTTP/1.x and HTTP/2 status lines, curl -v '< ' prefixes, CSP directive tokenization, multi-cookie flag inspection, COOP/CORP isolation validation, Server/X-Powered-By version fingerprinting checks, and automatic remediation header synthesis.

FAQ

Does this auditor make network requests to my website?

No. You paste response headers directly from browser DevTools or curl -I, and every security and caching rule is evaluated offline inside your browser.

What security checks determine the A+ to F grade?

The auditor evaluates Strict-Transport-Security, Content-Security-Policy (flagging unsafe-eval, unsafe-inline, and wildcards), X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, Set-Cookie flags, COOP/CORP isolation, and Cache-Control safety.

Why does Cache-Control matter for security?

Marking a response with Cache-Control: public while setting session cookies can cause CDNs or shared proxies to cache private user data. Sensitive responses should use private, no-store, while static assets benefit from max-age and stale-while-revalidate.