Spec-Zone.ru › HTTP

Headers: X-Forwarded-Host

X-Forwarded-Host header

The HTTP X-Forwarded-Host (XFH) request header is a de-facto standard header for identifying the original host requested by the client in the Host HTTP request header.

Host names and ports of reverse proxies (load balancers, CDNs) may differ from the origin server handling the request, in that case the X-Forwarded-Host header is useful to determine which Host was originally used.

A standardized version of this header is the HTTP Forwarded header, although it's much less frequently used.

Header type Request header
Forbidden request header No

Syntax

X-Forwarded-Host: <host>

Directives

<host>

The domain name of the forwarded server.

Examples

X-Forwarded-Host: id42.example-cdn.com

Specifications

Not part of any current specification.

See also

  • X-Forwarded-For, X-Forwarded-Proto headers
  • Host
  • Forwarded

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Forwarded-Host

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API