Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. HTTP
  3. Reference
  4. Headers
  5. X-Forwarded-Proto

X-Forwarded-Proto header

The HTTPX-Forwarded-Proto (XFP)request header is a de-facto standard header for identifying the protocol (HTTP or HTTPS) that a client used to connect to aproxy or load balancer.

Server access logs contain the protocol used between the server and the load balancer, but not the protocol used between the client and the load balancer.To determine the protocol used between the client and the load balancer, theX-Forwarded-Proto request header can be used.

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

Header typeRequest header
Forbidden request headerNo

Syntax

http
X-Forwarded-Proto: <protocol>

Directives

<protocol>

The forwarded protocol (http orhttps).

Examples

X-Forwarded-Proto client protocol

The following header indicates that the original request was made over HTTPS before being forwarded by a proxy or load balancer:

http
X-Forwarded-Proto: https

Non-standard forms

The following forms may be seen in request headers:

http
# MicrosoftFront-End-Https: onX-Forwarded-Protocol: httpsX-Forwarded-Ssl: onX-Url-Scheme: https

Specifications

Not part of any current specification. The standardized version of this header isForwarded.

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp