Removing header through docker labels

Hi everyone,

the documentation says:

Please note that it is not possible to remove headers through the use of labels (Docker, Rancher, Marathon, ...) for now.

I just did it:

- traefik.http.middlewares.testheader.headers.customrequestheaders.Origin=

It is a bug that it should not work or is the documentation not up-to-date?

Best,
Andreas

Hello,

do you mean that - traefik.http.middlewares.testheader.headers.customrequestheaders.Origin= remove the header?

Yes, it does. It's not emptied, it's just gone (according to tcpdump):

--- before      2019-09-29 11:25:17.000000000 +0200
+++ after       2019-09-29 11:24:19.000000000 +0200
@@ -7,10 +7,9 @@
 Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
 Cache-Control: max-age=0
 Content-Type: application/x-www-form-urlencoded
-Cookie: ORA_WWV_USER_260147368544498=ORA_WWV-osAyYIaiT5pS_ulcZfpA663d
+Cookie: ORA_WWV_USER_260147368544498=ORA_WWV-sCOrKstDjwUF7QoV48uB4izH
 Dnt: 1
-Origin: https://<replaced>
-Referer: https://<replaced>/apex/f?p=4550:1:13602625114591:::::
+Referer: https://<replaced>/apex/f?p=4550:1:33219309130717:::::
 Sec-Fetch-Mode: navigate
 Sec-Fetch-Site: same-origin
 Sec-Fetch-User: ?1
@@ -19,5 +18,5 @@
 X-Forwarded-Host: <replaced>
 X-Forwarded-Port: 443
 X-Forwarded-Proto: https
-X-Forwarded-Server: 6cc388280836
+X-Forwarded-Server: 926a00dcf0e0
 X-Real-Ip: 10.192.0.6

Other things are different due to docker-compose up.

Hi, Does Removal of Headers also works in kubernetes? traefik-version2.0.7