diff --git a/nodebalancer/cmd/nodebalancer/server.go b/nodebalancer/cmd/nodebalancer/server.go index cdc53fd2..7dee1aeb 100644 --- a/nodebalancer/cmd/nodebalancer/server.go +++ b/nodebalancer/cmd/nodebalancer/server.go @@ -218,7 +218,9 @@ func Server() { proxyToEndpoint.ModifyResponse = func(w *http.Response) error { // Remove proxy headers for k := range w.Header { - w.Header.Del(k) + if k == "Access-Control-Allow-Origin" || k == "Access-Control-Allow-Methods" || k == "Access-Control-Allow-Credentials" || k == "Access-Control-Allow-Headers" { + w.Header.Del(k) + } } return nil } diff --git a/nodebalancer/cmd/nodebalancer/version.go b/nodebalancer/cmd/nodebalancer/version.go index c7f6ddf2..5b04a011 100644 --- a/nodebalancer/cmd/nodebalancer/version.go +++ b/nodebalancer/cmd/nodebalancer/version.go @@ -1,3 +1,3 @@ package main -var NB_VERSION = "0.2.6" +var NB_VERSION = "0.2.7"