HTTP Headers Reference
Every common HTTP header explained, grouped by purpose. Searchable by name or keyword. Includes examples and RFC 9110 references.
Runs 100% in your browser — nothing is uploaded.
Auth
AuthorizationRequestCredentials for authenticating the request.
Bearer eyJhbGci...WWW-AuthenticateResponseIndicates the authentication scheme(s) applicable to access the target.
Bearer realm="api"Proxy-AuthorizationRequestCredentials for authenticating with a proxy.
Caching
Cache-ControlBothDirectives for caching mechanisms in both requests and responses.
public, max-age=31536000, immutableETagResponseVersion identifier for a specific resource version.
W/"abc123"If-None-MatchRequestAsk server for the resource only if the ETag has changed.
If-Modified-SinceRequestRequest the resource only if it was modified after the given date.
Last-ModifiedResponseDate the resource was last modified.
AgeResponseSeconds the object has been in a proxy cache.
ExpiresResponseDate after which the response is considered stale. Superseded by Cache-Control max-age.
VaryResponseWhich request headers cause a different cached response.
Accept-Encoding, User-Agent
Entity
Content-TypeBothMedia type of the resource.
application/json; charset=utf-8Content-LengthBothSize in bytes of the body.
Content-EncodingResponseCompression applied to the body (gzip, br, deflate).
Content-LanguageResponseLanguage(s) of the resource.
Content-DispositionResponseHow the response should be handled (inline / attachment) and filename.
attachment; filename="report.pdf"Content-RangeResponseByte range and total length for partial content responses.
RangeRequestByte range client wants.
bytes=0-1023
Request
AcceptRequestMedia types the client can process.
application/jsonAccept-EncodingRequestCompression algorithms the client accepts.
gzip, deflate, brAccept-LanguageRequestPreferred languages.
en-US, en;q=0.9HostRequestDomain name of the server (required in HTTP/1.1).
User-AgentRequestClient software identification.
RefererRequestURL of the page that linked to this one. Yes, the header is misspelled — a 1995 typo that stuck.
OriginRequestOrigin (scheme + host + port) of the requesting page, used by CORS.
CookieRequestStored HTTP cookies sent to the server.
Response
Set-CookieResponseSend a cookie from server to client.
session=abc; HttpOnly; Secure; SameSite=LaxLocationResponseURL to redirect to (used with 3xx redirects, 201 Created).
ServerResponseInformation about the origin server software.
AllowResponseHTTP methods valid for the resource. Sent with 405 responses.
Retry-AfterResponseHow long to wait before retrying. Used with 429 and 503.
CORS
Access-Control-Allow-OriginResponseWhich origins are allowed. Can be * or a specific origin.
https://example.comAccess-Control-Allow-MethodsResponseAllowed methods for preflight requests.
GET, POST, DELETEAccess-Control-Allow-HeadersResponseWhich headers can be included in the request.
Access-Control-Allow-CredentialsResponseWhether credentials (cookies, auth) are allowed with CORS.
trueAccess-Control-Max-AgeResponseSeconds the preflight can be cached.
Access-Control-Request-MethodRequestSent by browsers during preflight to indicate the actual method.
Security
Strict-Transport-SecurityResponseForce HTTPS for future requests to this host.
max-age=63072000; includeSubDomains; preloadContent-Security-PolicyResponseWhitelist of allowed content sources — the single most important security header.
default-src 'self'; script-src 'self' 'nonce-abc'X-Content-Type-OptionsResponseDisable MIME sniffing. Always set to nosniff.
nosniffX-Frame-OptionsResponsePrevent framing (clickjacking). Superseded by CSP frame-ancestors but still respected.
DENYReferrer-PolicyResponseHow much of the Referer to include on outbound requests.
strict-origin-when-cross-originPermissions-PolicyResponseWhich browser features are allowed on this page (camera, mic, geolocation, etc.).
X-XSS-ProtectionResponseLegacy XSS filter toggle. Deprecated — use CSP instead.
Frequently asked
RFC 9110 (2022 HTTP semantics) plus CORS spec, plus common security headers (CSP, HSTS, etc.).
Non-standard headers (X-Forwarded-*, X-Real-IP) are widely used but not in the RFC. They're on the roadmap for a "common non-standard headers" section.
Related tools
- HTTP Status CodesEvery HTTP status code you need to know, grouped by category, with plain-English
- User-Agent ParserParse any User-Agent string to identify the browser, engine, OS, and device. Aut
- URL ParserBreak any URL into its protocol, host, port, path, query parameters, and hash. U
- Base ConverterConvert numbers between binary, octal, decimal, and hexadecimal. Supports huge n
- Cron BuilderPick a preset or enter your own fields to build a cron expression. Includes a pl
- CSS Beautifier & MinifierBeautify minified CSS with proper indentation, or minify pretty CSS to a single