HTTPのリバースプロキシが本来のパスを伝えるためのヘッダ - X-Forwarded-Prefix
リバースプロキシが受け取ったHTTPのリクエストのパス(GET <ここの部分> HTTP/1.1)をupstreamのサーバーに伝える時のヘッダにX-Forwarded-Prefixを使うことが広く使わされていることが分かった。 調査
Microsoft YARP
X-Forwarded-Prefix - Sets the request's original PathBase, if any, to the X-Forwarded-Prefix header. See X-Forwarded below.
改名される決断にも関係している調査が以下のGitHubコメント。
To add the non-standard X-Forwarded-Prefix header to the upstream request with a string value, the following annotation can be used:
以下の通り、非標準であるX-Forwarded-Prefixも存在してると書かれている。
There are other non-standard headers, too, including X-Forwarded-Host, X-Forwarded-Port, X-Forwarded-Proto, X-Forwarded-Ssl, and X-Forwarded-Prefix.
New function kong.request.get_forwarded_prefix: returns the prefix path component of the request's URL that Kong stripped before proxying to upstream, respecting the value of X-Forwarded-Prefix when it comes from a trusted source
その他