Add Authorization header in Traefik handler
Traefik seems to remove the Authorization HTTP header from the request when ForwardAuth is used
But some applications need it (for OAuth XHR requests and such)
I could not find a way to configure Traefik to stop removing the Authorization header when ForwardAuth is used. So my proposal is to "echo" this header in the Traefik handler:
if (my $authorization = $req->headers->header("Authorization")) {
push @convertedHdrs, "Authorization", $authorization;
}
@dani1 have you encountered this issue as well when using the Traefik handler? @guimard do you agree with the solution?