HTTP Headers Reference
Search request, caching, CORS, security and proxy HTTP headers with copyable examples.
Accept RequestMedia types the client prefers in the response.
Accept: application/jsonAccept-Encoding RequestCompression encodings understood by client (gzip, br, zstd).
Accept-Encoding: br, gzipAccept-Language RequestPreferred natural languages and locales ordered by weight.
Accept-Language: en-US,en;q=0.9Authorization RequestAuthentication credentials such as Bearer JWT or Basic token.
Authorization: Bearer <token>Cookie RequestStored HTTP cookies previously set via Set-Cookie.
Cookie: session=abc123Host RequestTarget host and optional port used to route virtual hosts.
Host: api.example.comOrigin RequestScheme, hostname, and port initiating a fetch or CORS request.
Origin: https://app.example.comReferer RequestAddress of the previous page that linked or triggered the request.
Referer: https://example.com/User-Agent RequestSoftware vendor, browser, OS, and engine identifier string.
User-Agent: Mozilla/5.0 ...If-None-Match CachingConditional request using cached ETag; returns 304 when unchanged.
If-None-Match: "v42-etag"If-Modified-Since CachingConditional GET timestamp compared against resource Last-Modified.
If-Modified-Since: Wed, 21 Oct 2026 07:28:00 GMTCache-Control CachingCaching directives for browsers and CDNs (max-age, no-store, public).
Cache-Control: public, max-age=3600, stale-while-revalidate=60ETag CachingOpaque version validator for a specific resource representation.
ETag: W/"a1b2c3"Expires CachingLegacy HTTP date after which response is considered stale.
Expires: Thu, 01 Dec 2026 16:00:00 GMTLast-Modified CachingServer timestamp indicating when resource last changed.
Last-Modified: Wed, 21 Oct 2026 07:28:00 GMTAge CachingSeconds the object has stayed in a shared proxy/CDN cache.
Age: 142Vary CachingRequest headers that affect cached response equivalence.
Vary: Accept-Encoding, OriginConnection GeneralControls hop-by-hop persistence (keep-alive or close).
Connection: keep-aliveDate GeneralOrigin timestamp when HTTP message was generated.
Date: Fri, 04 Dec 2026 01:00:00 GMTTransfer-Encoding GeneralHop-by-hop payload framing such as chunked streaming.
Transfer-Encoding: chunkedContent-Type RepresentationMedia type and charset of the message payload.
Content-Type: application/json; charset=utf-8Content-Length RepresentationExact byte length of message body sent on the wire.
Content-Length: 512Content-Encoding RepresentationTransformations applied to body bytes (br, gzip, deflate).
Content-Encoding: brContent-Disposition RepresentationAdvises browser whether to display inline or save as named attachment.
Content-Disposition: attachment; filename="report.pdf"Content-Range RepresentationByte offset range included in a 206 Partial Content response.
Content-Range: bytes 0-499/1234Location ResponseTarget redirect URI (3xx) or URI of newly created resource (201).
Location: https://example.com/items/42Retry-After ResponseDelay in seconds or HTTP date after 429/503 responses.
Retry-After: 30Set-Cookie ResponseSends cookie key/value with HttpOnly, Secure, and SameSite flags.
Set-Cookie: sid=xyz; HttpOnly; Secure; SameSite=LaxWWW-Authenticate ResponseAuth challenge scheme and realm accompanying 401 Unauthorized.
WWW-Authenticate: Bearer realm="api"Server ResponseIdentifies origin web server software handling the request.
Server: nginxContent-Security-Policy SecurityRestricts permitted script, style, frame, and fetch origins.
Content-Security-Policy: default-src 'self'Strict-Transport-Security SecurityEnforces HTTPS connections for host and optional subdomains.
Strict-Transport-Security: max-age=31536000; includeSubDomainsX-Content-Type-Options SecurityPrevents browsers from MIME-sniffing responses away from declared type.
X-Content-Type-Options: nosniffX-Frame-Options SecurityControls whether page may be embedded inside an iframe.
X-Frame-Options: DENYReferrer-Policy SecurityControls how much referrer path/origin metadata is shared on navigation.
Referrer-Policy: strict-origin-when-cross-originPermissions-Policy SecurityAllows or disables browser APIs (camera, geolocation, mic) per origin.
Permissions-Policy: camera=(), microphone=()Cross-Origin-Opener-Policy SecurityIsolates top-level browsing context from cross-origin popups.
Cross-Origin-Opener-Policy: same-originCross-Origin-Embedder-Policy SecurityRequires subresources to opt in via CORP/CORS for SharedArrayBuffer.
Cross-Origin-Embedder-Policy: require-corpAccess-Control-Allow-Origin CORSSpecifies origins allowed to read cross-origin responses.
Access-Control-Allow-Origin: https://app.example.comAccess-Control-Allow-Methods CORSPermitted HTTP methods returned during preflight OPTIONS checks.
Access-Control-Allow-Methods: GET, POST, PATCHAccess-Control-Allow-Headers CORSCustom request headers authorized during CORS preflight.
Access-Control-Allow-Headers: Content-Type, AuthorizationAccess-Control-Allow-Credentials CORSAllows cookies/auth headers in cross-origin requests.
Access-Control-Allow-Credentials: trueAccess-Control-Expose-Headers CORSResponse headers made readable to browser JS fetch/XHR.
Access-Control-Expose-Headers: X-Request-IdAccess-Control-Max-Age CORSSeconds preflight CORS OPTIONS responses may be cached.
Access-Control-Max-Age: 86400X-Forwarded-For ProxyOrdered list of client and proxy IP addresses traversed.
X-Forwarded-For: 203.0.113.195, 10.0.0.1X-Forwarded-Proto ProxyOriginal protocol (http or https) seen by TLS terminator/proxy.
X-Forwarded-Proto: httpsX-Forwarded-Host ProxyOriginal Host header requested by client before reverse-proxy rewrite.
X-Forwarded-Host: app.example.comForwarded ProxyStandardized RFC 7239 proxy header combining by, for, host, proto.
Forwarded: for=192.0.2.60;proto=https;by=203.0.113.43Via ProxyTracks intermediate proxy hops and HTTP protocol versions.
Via: 1.1 cloudflareYour input is processed locally in this browser tab.
How to use HTTP Headers Reference
Search headers by name, function, or directive (such as cache, cors, csp, cookie, or forwarded).
Filter by group buttons: Request, Caching, Response, Security, CORS, Proxy, and more.
Click Copy on any card to copy a valid example header line.
Frequently asked questions
Are CORS preflight and security hardening headers included?
Yes. All major Access-Control-*, Content-Security-Policy, HSTS, COOP, and COEP headers are covered.
Does lookup work offline?
Yes, the entire catalog is bundled locally.