From the angular docs:
If you get an
ECONNREFUSEDerror using a proxy targeting alocalhostURL, you can fix this issue by updating the target fromhttp://localhost:<port>tohttp://127.0.0.1:<port>.See the
http-proxy-middlewaredocumentation for more information.