--- title: X-Forwarded-Proto slug: Web/HTTP/Headers/X-Forwarded-Proto tags: - HTTP - HTTPヘッダー - Reference - ヘッダー - リクエストヘッダー - 標準外 translation_of: Web/HTTP/Headers/X-Forwarded-Proto --- <div>{{HTTPSidebar}}</div> <p><strong><code>X-Forwarded-Proto</code></strong> (XFP) ヘッダーは、プロキシまたはロードバランサーへ接続するのに使っていたクライアントのプロトコル (HTTP または HTTPS) を特定するために事実上の標準となっているヘッダーです。サーバーのアクセスログにはサーバーとロードバランサーの間で使われたプロトコルが含まれていますが、クライアントとロードバランサーの間で使用されたプロトコルは含まれていません。クライアントとロードバランサーの間で使用されたプロトコルを特定するには、 <code>X-Forwarded-Proto</code> リクエストヘッダーを使用することができます。</p> <p>標準化されたヘッダーは HTTP {{HTTPHeader("Forwarded")}} ヘッダーです。</p> <table class="properties"> <tbody> <tr> <th scope="row">ヘッダー種別</th> <td>{{Glossary("Request header", "リクエストヘッダー")}}</td> </tr> <tr> <th scope="row">{{Glossary("Forbidden header name", "禁止ヘッダー名")}}</th> <td>いいえ</td> </tr> </tbody> </table> <h2 id="Syntax" name="Syntax">構文</h2> <pre class="syntaxbox">X-Forwarded-Proto: <protocol> </pre> <h2 id="Directives" name="Directives">ディレクティブ</h2> <dl> <dt><protocol></dt> <dd>転送されたプロトコル (http または https).</dd> </dl> <h2 id="Examples" name="Examples">例</h2> <pre>X-Forwarded-Proto: https</pre> <p>その他の標準外の形式:</p> <pre># Microsoft Front-End-Https: on X-Forwarded-Protocol: https X-Forwarded-Ssl: on X-Url-Scheme: https </pre> <h2 id="Specifications" name="Specifications">仕様書</h2> <p>現時点で、仕様書の一部ではありません。このヘッダーの標準化版は {{HTTPHeader("Forwarded")}} ヘッダーです。</p> <h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2> <p class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</p> <p>{{Compat("http.headers.X-Forwarded-Proto")}}</p> <h2 id="See_also" name="See_also">関連情報</h2> <ul> <li>{{HTTPHeader("Forwarded")}}</li> <li>{{HTTPHeader("X-Forwarded-For")}}</li> <li>{{HTTPHeader("X-Forwarded-Host")}}</li> </ul>