X-Forwarded-Host - HTTP 编辑
The X-Forwarded-Host
(XFH) 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.
This header is used for debugging, statistics, and generating location-dependent content and by design it exposes privacy sensitive information, such as the IP address of the client. Therefore the user's privacy must be kept in mind when deploying this header.
A standardized version of this header is the HTTP Forwarded
header.
Header type | Request header |
---|---|
Forbidden header name | 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. The standardized version of this header is Forwarded
.
Browser compatibility
BCD tables only load in the browser
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论