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.

68 results — select a header to view details
Accept
Indicates which media types the client can understand in the response.
Request
Accept-Encoding
Indicates which content encodings the client can understand.
Request
Accept-Language
Indicates which natural languages the client prefers in the response.
Request
Accept-Ranges
Indicates that the server supports range requests for the resource.
Response
Access-Control-Allow-Credentials
Indicates whether credentials such as cookies or authorization headers can be included in cross-origin requests.
CORS
Access-Control-Allow-Headers
Specifies which request headers can be used in a cross-origin request.
CORS
Access-Control-Allow-Methods
Specifies which HTTP methods are allowed when accessing the resource cross-origin.
CORS
Access-Control-Allow-Origin
Specifies which origin is allowed to access the resource 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-Headers
Lists which request headers will be used in the actual cross-origin request during a preflight request.
CORS
Access-Control-Request-Method
Indicates which HTTP method will be used in the actual cross-origin request during a preflight request.
CORS
Age
Indicates the number of seconds a cached response has been stored in a proxy cache.
Caching
Alt-Svc
Advertises alternative services that can serve the same resource, typically over a different protocol or port.
Response
Authorization
Carries authentication credentials for accessing a protected resource.
Security
Cache-Control
Defines caching rules for browsers, CDNs, and other intermediaries.
Caching
Clear-Site-Data
Instructs the browser to clear stored data associated with a website.
Security
Connection
Controls whether the network connection stays open after the current transaction.
General
Content-Disposition
Specifies whether content should be displayed inline or downloaded as an attachment.
Response
Content-Encoding
Indicates what additional encoding has been applied to the response body.
Response
Content-Length
Specifies the size of the message body in bytes.
Response
Content-Range
Describes which part of the resource is included in the response body.
Response
Content-Security-Policy
Controls which sources of content are allowed to load in the browser.
Security
Content-Type
Specifies the media type of the resource being sent to the client or server.
Response
Cookie
Sends previously stored cookies from the client to the server.
Request
Cross-Origin-Embedder-Policy
Controls whether a document is allowed to load cross-origin resources that are not explicitly permitted.
Security
Cross-Origin-Opener-Policy
Controls whether a top-level document can share its browsing context group with cross-origin documents.
Security
Cross-Origin-Resource-Policy
Tells browsers which origins are allowed to load a given resource.
Security
Date
Contains the date and time at which the message was originated.
Response
DNT
Expresses the user's tracking preference.
Request
ETag
Provides a unique identifier for a specific version of a resource.
Caching
Expect
Indicates that the client expects the server to acknowledge a condition before sending the request body.
Request
Expires
Specifies a date/time after which the response is considered stale.
Caching
Forwarded
Exposes original client connection information that is altered or lost when a proxy is involved.
Request
Host
Specifies the domain name of the server and optional port number.
Request
If-Match
Makes the request conditional on the resource matching the given ETag value.
Caching
If-Modified-Since
Makes the request conditional on the resource being modified after the given date.
Caching
If-None-Match
Makes the request conditional based on an ETag value.
Caching
Last-Modified
Indicates the date and time at which the origin server believes the resource was last modified.
Caching
Link
Associates the current resource with related resources or metadata.
Response
Location
Indicates the URL to redirect to or the URL of a newly created resource.
Response
Max-Forwards
Limits the number of times a request can be forwarded by proxies or gateways.
Request
Network Error Logging
Defines a policy for reporting network errors observed by the browser.
Reporting
Origin
Indicates the origin that initiated the request, mainly used in CORS and security contexts.
CORS
Permissions-Policy
Controls which browser features can be used in the current document or its embedded frames.
Security
Priority
Allows clients to signal the relative priority of an HTTP request.
Request
Range
Requests only part of a resource rather than the entire body.
Request
Referer
Indicates the address of the previous web page from which the current request originated.
Request
Referrer-Policy
Controls how much referrer information should be sent with requests.
Security
Retry-After
Tells the client how long to wait before making a follow-up request.
Response
Server
Identifies the software handling the request on the server side.
Response
Set-Cookie
Instructs the client to store a cookie.
Response
Strict-Transport-Security
Instructs browsers to only access the site over HTTPS for a specified period.
Security
TE
Specifies the transfer encodings the client is willing to accept in the response.
Request
Trailer
Lists the header fields that will be present in the trailer of a chunked transfer-encoded message.
General
Transfer-Encoding
Specifies the form of encoding used to safely transfer the message body.
Response
Upgrade-Insecure-Requests
Signals that the client prefers an encrypted and authenticated response.
Request
User-Agent
Identifies the client software making the request.
Request
Vary
Indicates which request headers influence the selected response representation.
Caching
Via
Tracks the intermediate proxies and gateways that forwarded a request or response.
General
WWW-Authenticate
Defines the authentication method that should be used to access a protected resource.
Security
X-Content-Type-Options
Tells browsers not to MIME-sniff a response away from the declared Content-Type.
Security
X-Forwarded-For
Carries the original client IP address when requests pass through proxies or load balancers.
Networking
X-Forwarded-Host
Indicates the original Host requested by the client before proxy forwarding.
Networking
X-Forwarded-Proto
Indicates the original protocol used by the client before the request passed through a proxy.
Networking
X-Frame-Options
Controls whether the page can be embedded inside a frame, iframe, embed, or object.
Security
X-Powered-By
Indicates the server-side technology or framework powering the application.
Response
X-Request-Id
Carries a unique identifier for a request so it can be traced across systems.
Networking