HTTP Headers
Reference for common HTTP request and response headers.
HTTP Headers
Reference for common HTTP request and response headers
Request Headers
AcceptMedia types acceptable for response
Accept: application/jsonAccept-EncodingAcceptable encoding methods
Accept-Encoding: gzip, deflate, brAccept-LanguagePreferred languages
Accept-Language: en-US,en;q=0.9AuthorizationCredentials for authentication
Authorization: Bearer eyJhbGciOiJIUzI1...Cache-ControlCaching directives
Cache-Control: no-cacheContent-TypeMedia type of request body
Content-Type: application/json; charset=utf-8CookieHTTP cookies sent to server
Cookie: sessionid=abc123; theme=darkHostDomain name of server
Host: api.example.comIf-Modified-SinceConditional request based on modification time
If-Modified-Since: Wed, 21 Oct 2023 07:28:00 GMTIf-None-MatchConditional request based on ETag
If-None-Match: "686897696a7c876b7e"OriginOrigin of request (CORS)
Origin: https://example.comRefererURL of referring page
Referer: https://example.com/pageUser-AgentClient software identifier
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)Response Headers
Access-Control-Allow-OriginCORS allowed origins
Access-Control-Allow-Origin: *Access-Control-Allow-MethodsCORS allowed HTTP methods
Access-Control-Allow-Methods: GET, POST, PUT, DELETEAccess-Control-Allow-HeadersCORS allowed headers
Access-Control-Allow-Headers: Content-Type, AuthorizationCache-ControlCaching directives for client
Cache-Control: public, max-age=3600Content-EncodingCompression method used
Content-Encoding: gzipContent-LengthSize of response body in bytes
Content-Length: 348Content-TypeMedia type of response body
Content-Type: text/html; charset=UTF-8ETagIdentifier for resource version
ETag: "686897696a7c876b7e"ExpiresDate/time when response expires
Expires: Wed, 21 Oct 2023 07:28:00 GMTLast-ModifiedLast modification date of resource
Last-Modified: Tue, 15 Nov 2023 12:45:26 GMTLocationURL for redirect or created resource
Location: https://example.com/new-pageServerWeb server software
Server: nginx/1.18.0Set-CookieSend cookie to client
Set-Cookie: sessionid=abc123; Path=/; HttpOnly; SecureStrict-Transport-SecurityForce HTTPS (HSTS)
Strict-Transport-Security: max-age=31536000; includeSubDomainsX-Content-Type-OptionsPrevent MIME sniffing
X-Content-Type-Options: nosniffX-Frame-OptionsClickjacking protection
X-Frame-Options: DENYX-XSS-ProtectionXSS filter for older browsers
X-XSS-Protection: 1; mode=blockSecurity Headers
Content-Security-PolicyControl resource loading (CSP)
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'X-Content-Type-OptionsPrevent MIME type sniffing
X-Content-Type-Options: nosniffX-Frame-OptionsControl frame embedding
X-Frame-Options: SAMEORIGINX-XSS-ProtectionEnable XSS filtering
X-XSS-Protection: 1; mode=blockStrict-Transport-SecurityEnforce HTTPS connections
Strict-Transport-Security: max-age=31536000Referrer-PolicyControl referrer information
Referrer-Policy: strict-origin-when-cross-originPermissions-PolicyControl browser features
Permissions-Policy: geolocation=(), camera=()Custom & API Headers
X-API-KeyAPI authentication key
X-API-Key: abc123xyz789X-Request-IDUnique request identifier
X-Request-ID: 550e8400-e29b-41d4-a716-446655440000X-Rate-Limit-LimitRate limit total requests
X-Rate-Limit-Limit: 100X-Rate-Limit-RemainingRate limit remaining requests
X-Rate-Limit-Remaining: 95X-Rate-Limit-ResetRate limit reset timestamp
X-Rate-Limit-Reset: 1609459200X-Forwarded-ForOriginal client IP (proxy)
X-Forwarded-For: 203.0.113.195, 70.41.3.18X-Forwarded-ProtoOriginal protocol (proxy)
X-Forwarded-Proto: https