diff --git a/components/ws-proxy/pkg/proxy/routes.go b/components/ws-proxy/pkg/proxy/routes.go index 8bc429dad47999..c2e3269714485f 100644 --- a/components/ws-proxy/pkg/proxy/routes.go +++ b/components/ws-proxy/pkg/proxy/routes.go @@ -376,10 +376,9 @@ func installWorkspacePortRoutes(r *mux.Router, config *RouteHandlerConfig, infoP r.Header["Sec-WebSocket-"+name] = values } } - portString := "443" r.Header.Add("X-Forwarded-Proto", "https") - r.Header.Add("X-Forwarded-Host", r.Host+":"+portString) - r.Header.Add("X-Forwarded-Port", portString) + r.Header.Add("X-Forwarded-Host", r.Host) + r.Header.Add("X-Forwarded-Port", "443") proxyPass( config, infoProvider,