diff --git a/aio/content/guide/build.md b/aio/content/guide/build.md index 3b318cd1914..ec18d4cbeb5 100644 --- a/aio/content/guide/build.md +++ b/aio/content/guide/build.md @@ -388,6 +388,19 @@ If you edit the proxy configuration file, you must relaunch the `ng serve` proce +
+ +As of Node version 17, Node will not always resolve `http://localhost:` to `http://127.0.0.1:` +depending on each machine's configuration. + +If you get an `ECONNREFUSED` error using a proxy targeting a `localhost` URL, +you can fix this issue by updating the target from `http://localhost:` to `http://127.0.0.1:`. + +See [the http proxy middleware documentation](https://github.com/chimurai/http-proxy-middleware#nodejs-17-econnrefused-issue-with-ipv6-and-localhost-705) +for more information. + +
+ ### Rewrite the URL path The `pathRewrite` proxy configuration option lets you rewrite the URL path at run time.