Skip to main content

HTTP Header Checker & Security Analyzer

Inspect and analyze HTTP response headers, verify CORS policies, test redirects, check SSL/HSTS configuration, and audit security headers in real-time.

HTTP Header Checker & Security Analyzer — Interactive Browser WorkspaceInspect and analyze HTTP response headers, verify CORS policies, test redirects, check SSL/HSTS configuration, and audit security headers in real-time.
100% Client-Side • Zero Server Upload
Sample Input / Parameters — Secure Production Site Header
URL: https://www.nexuscalculator.net, Method: HEAD
Ready locally via WebAssembly & JavaScript
Expected Output / Live Result
Content-Type: text/html; charset=utf-8
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
Content-Security-Policy: default-src 'self' ...
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
100% Client-Side • Zero Server Upload

Every HTTP exchange starts with a status line and a block of colon-delimited header fields governed by RFC 9110 (HTTP Semantics). Those response headers dictate browser security boundaries, TLS downgrade protection, cross-origin script access, CDN caching efficiency, and search engine indexing behavior—often overriding HTML <meta> tags inside the document body. Because browser fetch() APIs mask Set-Cookie headers and strip non-safelisted cross-origin fields under CORS rules, inspecting a remote endpoint faithfully requires a live server-side HTTP probe that captures each redirect hop and raw header line intact.

Security Header Hardening and Scoring Benchmarks

Modern browsers ship powerful exploit-mitigation engines that remain dormant unless an origin opts in through explicit response headers. Auditing these directives catches misconfigurations such as permissive 'unsafe-inline' CSP fallbacks or leaky Server and X-Powered-By banners that advertise exact software versions to automated scanners.

Response HeaderSpec / StandardRecommended Production BaselinePrimary Threat Mitigated
Content-Security-PolicyW3C CSP Level 3default-src 'self'; script-src 'self' 'nonce-{rand}'; object-src 'none'; frame-ancestors 'none'Cross-Site Scripting (XSS), inline script injection, data exfiltration.
Strict-Transport-SecurityRFC 6797max-age=31536000; includeSubDomains; preloadSSL-stripping and man-in-the-middle HTTP protocol downgrades.
X-Frame-OptionsRFC 7034DENY or SAMEORIGIN (paired with CSP frame-ancestors)UI redressing and cross-origin iframe clickjacking overlays.
X-Content-Type-OptionsFetch StandardnosniffDrive-by MIME sniffing executing uploaded text/images as JavaScript.
Referrer-PolicyW3C Referrer Policystrict-origin-when-cross-originLeakage of sensitive URL paths or reset tokens in outbound Referer headers.
Permissions-PolicyW3C Permissions Policycamera=(), microphone=(), geolocation=()Unauthorized third-party iframe access to browser hardware sensors.
Set-Cookie FlagsRFC 6265bisSecure; HttpOnly; SameSite=Lax; Path=/Cookie theft via XSS (HttpOnly), plaintext sniffing (Secure), and CSRF (SameSite).

Pay particular attention to Set-Cookie parsing when an endpoint sets multiple cookies in one response: naive string splitting on commas breaks on Expires=Thu, 19 Nov 2026 ... dates. Compliant HTTP clients read each Set-Cookie header field independently via headers.getSetCookie().

Tracing Redirect Chains and Status-Code Method Semantics

When a client follows redirects silently, intermediate headers disappear—hiding unnecessary 302 hops, missing http:// to https:// upgrades, or Set-Cookie writes dropped along the chain. Running requests in manual redirect mode exposes every intermediate status code, Location target, and per-hop latency.

Understanding RFC 9110 §15.4 redirect semantics prevents subtle SEO and API bugs:

  • 301 Moved Permanently vs. 308 Permanent Redirect: Both signal search engines to consolidate canonical signals onto the target URL, but 301 permits clients to convert POST to GET, whereas 308 guarantees method and body preservation.
  • 302 Found vs. 307 Temporary Redirect: Both indicate temporary relocation; 307 preserves non-GET methods strictly.
  • Circular Loop & SSRF Guards: A production inspector must re-resolve DNS and block private RFC 1918, loopback (127.0.0.0/8, ::1), and link-local destinations on every hop—not just the initial URL—because an attacker can host a public URL that returns 302 Location: http://169.254.169.254/.

For dedicated multi-hop link audits across canonical matrices, pair this tool with the Redirect Checker, or verify the underlying host resolution first in our DNS Lookup Tool.

Caching Validators, Compression, and CORS Preflight Pitfalls

Freshness, Revalidation, and Vary Keys

High-throughput web applications balance cache hit rates against stale content using two RFC 9111 mechanisms:

  1. Freshness Lifetimes: Content-hashed static bundles (for example app.9f3a2c.js) should ship Cache-Control: public, max-age=31536000, immutable, eliminating conditional network round-trips entirely. HTML documents and dynamic APIs should rely on Cache-Control: no-cache (store, but revalidate before reuse) or private, no-store (never persist sensitive payloads).
  2. Conditional Validators: Returning a strong ETag: "a84f91c2" (or weak W/"..." when byte-for-byte identity changes under dynamic compression) alongside Last-Modified enables clients to send If-None-Match and receive lightweight 304 Not Modified responses.
  3. Compression & Vary: Serving Brotli (Content-Encoding: br) typically shrinks text assets 15–20% further than gzip, but always pair compression with Vary: Accept-Encoding so CDN edge caches segregate compressed and uncompressed variants cleanly.

Diagnosing Cross-Origin Resource Sharing (CORS) and SEO Directives

When a browser initiates a cross-origin request with custom headers (such as Authorization or Content-Type: application/json), it transmits an OPTIONS preflight first. Common production failures surface immediately during header inspection: returning Access-Control-Allow-Origin: * breaks credentialed fetch(..., { credentials: 'include' }) calls, omitting Access-Control-Expose-Headers hides custom rate-limit or pagination headers from frontend JavaScript even when they arrive on the wire, and failing to emit Access-Control-Max-Age forces browsers to repeat preflight round-trips before every API mutation.

Response headers also govern search engine crawl directives independently of HTML <head> markup. For binary assets such as PDF brochures, downloadable archives, or JSON feeds where <meta name="robots"> cannot be embedded, servers emit X-Robots-Tag: noindex, nofollow to prevent accidental search indexing and Link: <https://example.com/guide>; rel="canonical" to consolidate duplicate URL signals cleanly at the transport layer. Always verify that staging environments sending X-Robots-Tag: noindex do not leak that directive onto production origins after deployment.

Reproducing Header Audits in CI and Terminal Pipelines

To reproduce the exact hop-by-hop response headers from a terminal or CI smoke test, use curl with -D - (dump headers to stdout) and -sSL (follow redirects silently while surfacing errors):

# Inspect full redirect chain, status lines, and response headers with Brotli/Gzip requested
curl -sSL -D - -o /dev/null --compressed \
  -A "Mozilla/5.0 (compatible; HeaderAudit/1.0)" \
  https://example.com

# Test a CORS preflight OPTIONS request explicitly
curl -i -X OPTIONS https://api.example.com/v1/items \
  -H "Origin: https://app.example.com" \
  -H "Access-Control-Request-Method: POST" \
  -H "Access-Control-Request-Headers: Authorization, Content-Type"

If you manage Apache origins and need ready-to-deploy .htaccess directives for HTTPS canonical redirects, Header always set security policies, and compression rules, generate the configuration syntax cleanly using our HTAccess Generator and re-run a live header inspection here to confirm every directive takes effect.

How to Use HTTP Header Checker & Security Analyzer

1

Paste any public HTTP or HTTPS URL into the target field; missing schemes default automatically to HTTPS.

2

Select GET or HEAD as the probe method and optionally override the User-Agent string to mimic desktop, mobile, or crawler clients.

3

Run the inspection to follow redirects manually hop by hop while recording status codes, response times, and raw headers.

4

Review the Security, SEO, and Performance scorecards to spot missing hardening headers, unsafe CSP wildcards, or uncompressed payloads.

5

Expand the Cookies, CORS, and Raw Headers panels to verify Set-Cookie security flags and cross-origin access directives.

6

Re-test immediately after updating Nginx, Apache, Cloudflare, or application middleware rules to confirm header compliance.

Real Examples

Secure Production Site Header

Typical headers returned by a highly hardened web server.

Input
URL: https://www.nexuscalculator.net, Method: HEAD
Output
Content-Type: text/html; charset=utf-8
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
Content-Security-Policy: default-src 'self' ...
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin

Standard HTTP to HTTPS Redirect

Redirect tracing sequence showing canonical path resolution.

Input
URL: http://github.com, Method: GET
Output
Step 1: http://github.com -> 301 Moved Permanently (Location: https://github.com/)
Step 2: https://github.com/ -> 200 OK
Final: https://github.com/

API Endpoint Response headers

CORS and cache validation settings for a public REST API.

Input
URL: https://api.github.com, Method: GET
Output
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: ETag, Link, RateLimit-Limit...
Cache-Control: public, max-age=60, s-maxage=60
Content-Type: application/json; charset=utf-8

Frequently Asked Questions

Why cannot client-side browser JavaScript read all HTTP response headers of a remote website?
The Fetch standard enforces the Same-Origin Policy and exposes only CORS-safelisted response headers (such as Content-Type and Cache-Control) unless the target explicitly lists extra headers in Access-Control-Expose-Headers. Running the probe through an SSRF-hardened server route captures every raw header, Set-Cookie directive, and 3xx redirect hop.
What is the difference between HTTP 301/302 and 307/308 redirects?
Under RFC 9110 Section 15.4, user agents historically rewrote POST requests into GET requests when following 301 or 302 redirects. Status codes 307 (Temporary Redirect) and 308 (Permanent Redirect) strictly forbid changing the HTTP method or body, making them essential for API endpoints and form submissions.
Why does Access-Control-Allow-Origin: * fail when a frontend sends cookies or credentials?
The Fetch specification prohibits combining the wildcard origin '*' with Access-Control-Allow-Credentials: true because doing so would allow any arbitrary site to issue authenticated requests on a user's behalf. Servers handling credentialed requests must echo an allowlisted Origin header dynamically and include Vary: Origin.
Why does missing Vary: Accept-Encoding cause problems when Brotli or Gzip is enabled?
Shared CDNs and reverse proxies key cached responses by URL plus headers listed in Vary. Without Vary: Accept-Encoding, a cache that stores a Brotli-compressed object for one browser could mistakenly serve binary compressed bytes to a legacy client or bot that only requested uncompressed text.
What makes Cache-Control: no-cache different from Cache-Control: no-store?
Despite its name, no-cache permits browsers and proxies to store a response copy locally as long as they revalidate it with the origin via ETag or Last-Modified before reuse. By contrast, no-store forbids writing the response to volatile or disk caches altogether and should be used for sensitive banking, auth, or PII endpoints.

Key Features

  • Manual hop-by-hop redirect tracing (up to 5 hops) with per-hop latency measurements and circular-loop detection
  • Weighted security header scoring auditing CSP, HSTS, X-Frame-Options, XCTO, Referrer-Policy, Permissions-Policy, and server banner leaks
  • Granular Set-Cookie attribute parsing checking Secure, HttpOnly, SameSite, Expires, and Max-Age directives across multiple cookies
  • SEO and crawlability header verification covering X-Robots-Tag, HTTP Link rel=canonical, HTTPS upgrades, and Vary: Accept-Encoding
  • Caching and payload compression diagnostics inspecting Cache-Control directives, ETag/Last-Modified validators, and Brotli/Gzip encoding
  • Customizable GET/HEAD request methods and User-Agent overrides protected by per-hop DNS and SSRF private-IP filtering

Common Use Cases

  • Validating newly deployed Content-Security-Policy and Strict-Transport-Security headers before enabling HSTS preloading
  • Debugging broken cross-origin API calls by checking Access-Control-Allow-Origin, Methods, and Headers directly on live endpoints
  • Auditing CDN cache-hit behavior, immutable asset lifetimes, and conditional ETag validation after modifying reverse-proxy rules
  • Verifying that legacy HTTP and www URLs resolve cleanly to canonical HTTPS destinations without redirect loops
  • Confirming that authentication Set-Cookie headers enforce HttpOnly, Secure, and appropriate SameSite flags in production
  • Checking X-Robots-Tag and HTTP Link canonical headers on non-HTML assets like PDFs, images, and API feeds for technical SEO

Explore More Tools in This Category

View All Developer & Utility Tools

Free URL Redirect Checker

Trace URL redirects instantly. Our free Redirect Checker detects 301, 302, and 307 redirects, uncovering hidden redirect chains and loops to fix your SEO.

Website Screenshot Tool

Capture pixel-perfect screenshots of any website in multiple device resolutions. Generate full-page captures, test responsiveness, analyze SEO meta tags, and measure page load performance.

DNS Lookup Tool & Domain Analyzer

Inspect DNS records (A, AAAA, MX, TXT, CNAME, NS, SOA, CAA, SRV, PTR), analyze SPF/DMARC mail security, detect hosting/nameserver providers, and diagnose resolution issues.

IP Lookup Tool & Geolocation Analyzer

Inspect any IP address (IPv4/IPv6) to discover details about its geolocation, ISP network provider, ASN registration, reverse DNS hostname, proxy/VPN status, and threat metrics.

User Agent Parser & Client Info Detector

Parse, analyze, and decode any browser User Agent (UA) string to identify the browser engine, operating system, rendering engines, device types, bot/crawlers, and client capabilities in real-time.

MIME Type Checker & Content-Type Inspector

Look up IANA media types, verify file uploads locally using binary magic bytes, compare extension-to-header mappings, and audit remote HTTP Content-Type and X-Content-Type-Options security headers.

LLM Token & API Cost Calculator

Estimate BPE token counts, input/output API spend, prompt caching ROI, and RAG context budgets across Gemini 2.5, GPT-4o, GPT-4.1, Claude 4, and DeepSeek models.

Cron Expression Generator & Schedule Tester

Generate, decode, and validate 5-field POSIX cron expressions for Linux, Kubernetes, GitHub Actions, and Vercel, with live previews of upcoming UTC and local execution timestamps.