Skip to content
Toolcroft

Developer Tools

HTTP Header Analyzer - Inspect & Validate Headers

Paste HTTP response headers to get instant explanations, security scoring, cookie flag checks, CSP analysis, and actionable recommendations - all offline.

Security Score

95

Excellent

Headers

10

Issues

1

Missing Security

0

Content-TypeEntity

text/html; charset=utf-8

Media type and optional charset of the body.

Cache-ControlGeneral

no-store

Caching directives for request and response.

Strict-Transport-SecuritySecurity

max-age=31536000; includeSubDomains

Forces HTTPS for all future requests (HSTS).

X-Content-Type-OptionsSecurity

nosniff

Prevents MIME-type sniffing. Should be "nosniff".

X-Frame-OptionsSecurity

DENY

Controls whether the page can be embedded in a frame. Partially superseded by CSP frame-ancestors.

Referrer-PolicySecurity

strict-origin-when-cross-origin

Controls how much referrer information is included with requests.

Content-Security-PolicySecurity

default-src 'self'; script-src 'self'

Restricts resources the browser can load (scripts, styles, frames, etc.).

Permissions-PolicySecurity

camera=(), microphone=()

Controls which browser features and APIs the page can use.

ServerResponse

nginx/1.24.0

Information about the server software. Avoid exposing version details.

  • Exposes server technology. Consider removing to reduce fingerprinting.
Set-CookieResponse

session=abc123; Path=/; Secure; HttpOnly; SameSite=Strict

Sets a cookie on the client.

What are HTTP headers?

HTTP headers are key-value pairs sent at the start of every HTTP request and response. They control caching, authentication, content negotiation, CORS, cookies, and security policies. Understanding them is essential for web performance, security hardening, and debugging.

How to get your site's headers

  1. Open DevTools -> Network tab.
  2. Reload the page and click the main document request.
  3. Copy the response headers section and paste it here.

Alternatively, use curl -I https://example.com in a terminal to print only response headers.

Security headers explained

HeaderPurpose
Strict-Transport-SecurityForces HTTPS (HSTS)
Content-Security-PolicyRestricts resource loading to prevent XSS
X-Content-Type-OptionsPrevents MIME sniffing
X-Frame-OptionsPrevents clickjacking
Referrer-PolicyControls referrer leakage
Permissions-PolicyRestricts browser feature access

CORS headers

Cross-Origin Resource Sharing (CORS) headers control whether browsers allow web pages to make requests to a different origin. Misconfigured CORS is a common source of browser errors for API and frontend developers:

  • Access-Control-Allow-Origin: specifies which origins may access the resource. Use * for public APIs; use a specific origin for authenticated endpoints.
  • Access-Control-Allow-Methods: lists the HTTP methods permitted (e.g., GET, POST, PUT, DELETE).
  • Access-Control-Allow-Headers: lists which request headers the browser may send.
  • Access-Control-Allow-Credentials: set to true only if cookies or Authorization headers are needed; cannot be combined with * origin.

Security header checklist

HeaderWhat it protects against
Strict-Transport-SecurityForces HTTPS; prevents SSL stripping attacks
Content-Security-PolicyRestricts resource sources to prevent XSS and data injection
X-Content-Type-Options: nosniffPrevents MIME-type sniffing attacks
X-Frame-Options: DENYPrevents clickjacking via iframe embedding
Referrer-PolicyControls how much referrer info is sent; prevents URL leakage
Permissions-PolicyRestricts browser features (camera, microphone, geolocation)

Set-Cookie flags

  • HttpOnly: prevents JavaScript access (blocks XSS theft)
  • Secure: only sent over HTTPS
  • SameSite=Strict/Lax: prevents CSRF attacks