From 6129ab33f63778b4a33f498913190c95f7eaf0c3 Mon Sep 17 00:00:00 2001 From: Bouke Haarsma Date: Wed, 27 Oct 2021 16:58:14 +0200 Subject: [PATCH] X-Forwarded overwrites by default, not appends (#1329) --- docs/docfx/articles/transforms.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docfx/articles/transforms.md b/docs/docfx/articles/transforms.md index 29ecf2a08..d106de026 100644 --- a/docs/docfx/articles/transforms.md +++ b/docs/docfx/articles/transforms.md @@ -10,10 +10,10 @@ Request and response body transforms are not provided by YARP but you can write ## Defaults The following transforms are enabled by default for all routes. They can be configured or disabled as shown later in this document. - Host - Suppress the incoming request's Host header. The proxy request will default to the host name specified in the destination server address. See [RequestHeaderOriginalHost](#requestheaderoriginalhost) below. -- X-Forwarded-For - Appends the client's IP address to the X-Forwarded-For header. See [X-Forwarded](#x-forwarded) below. -- X-Forwarded-Proto - Appends the request's original scheme (http/https) to the X-Forwarded-Proto header. See [X-Forwarded](#x-forwarded) below. -- X-Forwarded-Host - Appends the request's original Host to the X-Forwarded-Host header. See [X-Forwarded](#x-forwarded) below. -- X-Forwarded-Prefix - Appends the request's original PathBase, if any, to the X-Forwarded-Prefix header. See [X-Forwarded](#x-forwarded) below. +- X-Forwarded-For - Sets the client's IP address to the X-Forwarded-For header. See [X-Forwarded](#x-forwarded) below. +- X-Forwarded-Proto - Sets the request's original scheme (http/https) to the X-Forwarded-Proto header. See [X-Forwarded](#x-forwarded) below. +- X-Forwarded-Host - Sets the request's original Host to the X-Forwarded-Host header. See [X-Forwarded](#x-forwarded) below. +- X-Forwarded-Prefix - Sets the request's original PathBase, if any, to the X-Forwarded-Prefix header. See [X-Forwarded](#x-forwarded) below. For example the following incoming request to `http://IncomingHost:5000/path`: ```