diff --git a/node-proxy/lib/proxy/ProxyServer.js b/node-proxy/lib/proxy/ProxyServer.js index 97399b3ef15..fe06aae4861 100644 --- a/node-proxy/lib/proxy/ProxyServer.js +++ b/node-proxy/lib/proxy/ProxyServer.js @@ -478,6 +478,10 @@ function finish_websocket(upg_reqhost, proxy_server, ws) { if (upgrade_req.headers["origin"]) { zheaders.headers["Origin"] = upgrade_req.headers["origin"]; } + + if (upgrade_req.headers["authorization"]) { + zheaders.headers["Authorization"] = upgrade_req.headers["authorization"]; + } /* Create a proxy websocket request we need to send. */ var proxy_ws = new WebSocket('ws://' + ws_endpoint + upg_requri, zheaders);