Skip to content

Commit e830959

Browse files
committed
Remove transparent proxy note from the doc (#129)
See #128 Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
1 parent 73917cb commit e830959

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/asciidoc/index.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,19 @@ End-to-end headers are forwarded by the proxy, hop-by-hop headers are ignored.
7070

7171
==== Request authority
7272

73-
As a transparent proxy, the request authority (`Host` header for HTTP/1.1, `:authority` pseudo header for HTTP/2) is preserved.
73+
By default, the proxy request authority (`Host` header for HTTP/1.1, `:authority` pseudo header for HTTP/2) is set by the HTTP client according to the origin server address.
7474

75-
You can override the request authority
75+
CAUTION: The origin server may need you to set the https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Forwarded-Host[`x-forwarded-*`] or https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Forwarded[`forwarded`] headers on the proxied request.
76+
For example, it might use the values to compute a created HTTP resource https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Location[location].
77+
78+
Nevertheless, you can override the request authority:
7679

7780
[source,java]
7881
----
7982
{@link examples.HttpProxyExamples#overrideAuthority}
8083
----
8184

82-
When the request authority is overridden, the `x-forwarded-host` header is set on the request to the origin server with the original authority value.
83-
84-
WARNING: changing the request authority can have undesirable side effects and can affect the proxied web server that might
85-
rely on the original request authority to handle cookies, URL redirects and such.
85+
When the request authority is overridden, the `x-forwarded-host` header is automatically set on the request to the origin server with the original authority value.
8686

8787
=== WebSockets
8888

0 commit comments

Comments
 (0)