HTTPREF
← Back to home

HTTP Headers

Browse common HTTP headers with explanations, syntax examples, use cases, and related headers used in web APIs and browsers.

47 results — select a header to view details
Content-Type
Specifies the media type of the resource being sent to the client or server.
Response
Authorization
Carries authentication credentials for accessing a protected resource.
Security
Accept
Indicates which media types the client can understand in the response.
Request
Cache-Control
Defines caching rules for browsers, CDNs, and other intermediaries.
Caching
ETag
Provides a unique identifier for a specific version of a resource.
Caching
User-Agent
Identifies the client software making the request.
Request
Referer
Indicates the address of the previous web page from which the current request originated.
Request
Origin
Indicates the origin that initiated the request, mainly used in CORS and security contexts.
CORS
Content-Length
Specifies the size of the message body in bytes.
Response
Host
Specifies the domain name of the server and optional port number.
Request
Accept-Language
Indicates which natural languages the client prefers in the response.
Request
Accept-Encoding
Indicates which content encodings the client can understand.
Request
Content-Encoding
Indicates what additional encoding has been applied to the response body.
Response
Cookie
Sends previously stored cookies from the client to the server.
Request
Set-Cookie
Instructs the client to store a cookie.
Response
Location
Indicates the URL to redirect to or the URL of a newly created resource.
Response
Content-Disposition
Specifies whether content should be displayed inline or downloaded as an attachment.
Response
If-None-Match
Makes the request conditional based on an ETag value.
Caching
If-Match
Makes the request conditional on the resource matching the given ETag value.
Caching
Last-Modified
Indicates the date and time at which the origin server believes the resource was last modified.
Caching
If-Modified-Since
Makes the request conditional on the resource being modified after the given date.
Caching
Expires
Specifies a date/time after which the response is considered stale.
Caching
Vary
Indicates which request headers influence the selected response representation.
Caching
Range
Requests only part of a resource rather than the entire body.
Request
Content-Range
Describes which part of the resource is included in the response body.
Response
Accept-Ranges
Indicates that the server supports range requests for the resource.
Response
Transfer-Encoding
Specifies the form of encoding used to safely transfer the message body.
Response
WWW-Authenticate
Defines the authentication method that should be used to access a protected resource.
Security
Strict-Transport-Security
Instructs browsers to only access the site over HTTPS for a specified period.
Security
Content-Security-Policy
Controls which sources of content are allowed to load in the browser.
Security
X-Frame-Options
Controls whether the page can be embedded inside a frame, iframe, embed, or object.
Security
X-Content-Type-Options
Tells browsers not to MIME-sniff a response away from the declared Content-Type.
Security
Referrer-Policy
Controls how much referrer information should be sent with requests.
Security
Permissions-Policy
Controls which browser features can be used in the current document or its embedded frames.
Security
Access-Control-Allow-Origin
Specifies which origin is allowed to access the resource in cross-origin requests.
CORS
Access-Control-Allow-Methods
Specifies which HTTP methods are allowed when accessing the resource cross-origin.
CORS
Access-Control-Allow-Headers
Specifies which request headers can be used in a cross-origin request.
CORS
Access-Control-Allow-Credentials
Indicates whether credentials such as cookies or authorization headers can be included in cross-origin requests.
CORS
Access-Control-Expose-Headers
Specifies which response headers are safe to expose to frontend JavaScript in cross-origin responses.
CORS
Access-Control-Max-Age
Specifies how long the result of a CORS preflight request can be cached.
CORS
Access-Control-Request-Method
Indicates which HTTP method will be used in the actual cross-origin request during a preflight request.
CORS
Access-Control-Request-Headers
Lists which request headers will be used in the actual cross-origin request during a preflight request.
CORS
X-Forwarded-For
Carries the original client IP address when requests pass through proxies or load balancers.
Networking
X-Forwarded-Proto
Indicates the original protocol used by the client before the request passed through a proxy.
Networking
X-Forwarded-Host
Indicates the original Host requested by the client before proxy forwarding.
Networking
X-Request-Id
Carries a unique identifier for a request so it can be traced across systems.
Networking
Server
Identifies the software handling the request on the server side.
Response