API Header Inspector
Look up any HTTP request or response header for its meaning, RFC, usage, and security notes. Runs entirely in your browser.
Calculator
Header
Example
Typical Usage
Common Mistakes
Security Notes
Related Headers
| Header |
|---|
Header Name
—
How API Header Inspector Works
What are HTTP Headers?
HTTP headers are key-value metadata sent alongside every request and response, separate from the actual body content. They tell the other side of the connection how to interpret the message: what format the body is in, how long it can be cached, who's asking, what credentials they're presenting, and dozens of other operational details. A single request or response typically carries a dozen or more headers, most of them set automatically by the browser or server without any application code ever touching them directly.
Request Headers
Sent by the client to describe the request and what it can accept back: Accept and its
variants for content negotiation, Authorization for credentials,
User-Agent identifying the client, and conditional headers like
If-None-Match for cache revalidation.
Response Headers
Sent by the server to describe what it's returning: Content-Type and
Content-Encoding describing the body, Set-Cookie establishing client-side
state, Location for redirects, and a range of CORS and security headers controlling how
browsers are allowed to use the response.
General Headers
Apply to the message itself rather than specifically to a request or a response —
Cache-Control, Connection, Date, and
Transfer-Encoding are all about how the HTTP message is transmitted and cached, not what
it contains.
Authentication Headers
Authorization carries the client's credentials (a Bearer token, API key, or Basic auth
string); WWW-Authenticate is the server's response telling the client what authentication
scheme it expects. Together they drive most API authentication flows.
CORS Headers
Cross-Origin Resource Sharing headers — Access-Control-Allow-Origin,
-Allow-Headers, -Allow-Methods, and -Allow-Credentials —
let a server explicitly permit browser JavaScript running on a different origin to read its responses.
Misconfiguring these (especially combining a wildcard origin with credentialed requests) is one of the
most common real-world web security mistakes.
Cache Headers
Cache-Control, ETag, Expires, and the conditional-request
headers (If-Modified-Since, If-None-Match) work together to let clients and
intermediate caches avoid re-downloading unchanged content, while still detecting when a resource
actually has changed.
Security Headers
Strict-Transport-Security forces HTTPS-only connections, Set-Cookie's
HttpOnly/Secure/SameSite flags protect session cookies, and careful Content-Disposition
usage prevents user-uploaded content from being rendered as active content in the browser. Getting
these right is foundational, unglamorous web security work.
Common Mistakes
- Reflecting Origin into Access-Control-Allow-Origin unconditionally. This effectively disables CORS protection — always validate against an explicit allow-list.
- Sending Authorization or Set-Cookie without HTTPS. Both should be treated as sensitive credentials, exposed to network eavesdroppers on plain HTTP.
- Setting both Content-Length and Transfer-Encoding: chunked. This conflicting combination is a well-known building block of HTTP request smuggling attacks.
- Trusting client-supplied headers (Host, User-Agent, X-Forwarded-For) for security decisions. Anything the client sends is, by definition, client-controlled and can be forged.
Related Tools
Working with HTTP headers often overlaps with other developer utility tasks: look up what a response status code means with the HTTP Status Code Reference, decode the Bearer token an Authorization header carries with the JWT Decoder, validate a header value's shape with the Regex Tester, fingerprint a response body with the Hash Generator, or explain a scheduled job that calls this API with the Cron Expression Parser.
Accuracy & Sources
Last reviewed: August 2026. Formula source: RFC 9110 — HTTP Semantics. All calculations run in your browser. No data is sent to any server.
Frequently Asked Questions
Request headers are sent by the client to describe the request (e.g. Accept, Authorization, User-Agent); response headers are sent by the server to describe what it's returning (e.g. Content-Type, Set-Cookie, Location). Some headers, called general headers, apply to the message itself and can appear on either side (e.g. Cache-Control, Connection).
Usually because the server's Access-Control-Allow-Origin doesn't include your exact origin, or because the request needs a preflight (OPTIONS) that the server didn't answer with the right Access-Control-Allow-Headers/Methods. If the request sends cookies or auth, Access-Control-Allow-Credentials must also be set to true, and the origin can't be a wildcard '*' in that case.
Authorization is explicitly set by client code on each request (typically a Bearer token or API key) and isn't automatically attached by the browser. Cookie is automatically attached by the browser for the matching domain once set via Set-Cookie — convenient for browser-based sessions, but that automatic attachment is also what makes CSRF attacks possible without the SameSite flag.
Set HttpOnly (blocks JavaScript access, mitigating XSS-based theft), Secure (only sent over HTTPS), and an appropriate SameSite value (Strict or Lax to mitigate CSRF) on the Set-Cookie header. All three together are the standard baseline for session cookie security.
No — it's a pure reference lookup against a fixed table of standard HTTP headers and their meanings. It makes no network requests and inspects no live APIs; it only explains a header name you already have.
This tool covers standard General, Request, and Response headers defined by IETF RFCs or the WHATWG Fetch (CORS) standard. Custom application-specific headers (like an X-Api-Key some services invent) or less common headers outside this tool's supported list won't be found in the lookup table.