Skip to content

Commit 6381f9b

Browse files
authored
Merge pull request #31191 from bmcelvee/GHissue-31057
GitHub issue#31057 add haproxy.router.openshift.io/set-forwarded-headers to annotation table
2 parents 2c5c3d5 + 9034223 commit 6381f9b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

modules/nw-route-specific-annotations.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ and "-". The default is the hashed internal key name for the route. |
4141
`None`: cookies are restricted to the visited site.
4242

4343
This value is applicable to re-encrypt and edge routes only. For more information, see the link:https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite[SameSite cookies documentation].|
44+
45+
|`haproxy.router.openshift.io/set-forwarded-headers` | Sets the policy for handling the `Forwarded` and `X-Forwarded-For` HTTP headers per route. The values are:
46+
47+
`append`: appends the header, preserving any existing header. This is the default value.
48+
49+
`replace`: sets the header, removing any existing header.
50+
51+
`never`: never sets the header, but preserves any existing header.
52+
53+
`if-none`: sets the header if it is not already set.| `ROUTER_SET_FORWARDED_HEADERS`
54+
4455
|===
4556

4657
[NOTE]

0 commit comments

Comments
 (0)