ECONNREFUSED means that the server process is not listening on the specified port. What hostname
, and port
do you use? Can you connect directly (without proxy)?
P.S. ECONNREFUSED, changeOrigin , proxy.web:
proxy.web(req, res, {
target: 'http://' + hostname + ':' + port,
changeOrigin: true
});