HTTP headers reference
Updated 2026-02-14
Common HTTP request and response headers with meanings and use cases. CORS, caching, auth, content types.
Request headers
AcceptContent types the client understands.
Accept-EncodingEncodings (gzip, br).
Accept-LanguagePreferred languages.
AuthorizationCredentials (e.g. Bearer token).
Content-TypeMIME type of body (e.g. application/json).
CookieCookies sent by client.
HostDomain and optional port.
OriginOrigin (CORS).
User-AgentClient identifier.
If-None-MatchETag for conditional request (304).
RangePartial content (bytes=0-1023).
Response headers
Access-Control-Allow-OriginCORS: allowed origins.
Content-DispositionInline or attachment; filename.
Content-EncodingBody encoding (gzip, br).
Content-Security-PolicyCSP: script/style sources.
ETagCache validator.
LocationRedirect URL (3xx).
Set-CookieSend cookie to client.
Strict-Transport-SecurityHSTS: enforce HTTPS.
WWW-AuthenticateChallenge for 401.
X-Content-Type-Optionsnosniff.
X-Frame-OptionsDENY or SAMEORIGIN.
Request and response
Cache-Control (max-age, no-cache). Connection. Content-Length. Vary (e.g. Accept-Encoding).