Traefik : do not obfuscate HTTP bodywith code >400

12/6/2018

Is there a way to tell Traefik not overwrite the response body when the response code is > 400 ?

The goal is to keep the body of a 404 or a 401 response
The goal is not have a custom error page but the real error page from the backend.

The environment is a Kubernetes Cluster where Traefik is the ingress provider, the storage used by traefik is consul.

-- doctori
kubernetes
kubernetes-ingress
traefik

1 Answer

12/7/2018

This answer my question : https://github.com/containous/traefik/issues/4114
this is not possible since the net/http golang lib is implementing the RFC 7230 sec. 3.1.2. hardly,
and does not plan to change it.

-- doctori
Source: StackOverflow