From 8eb3306064809fa064740d8844701faa83a36468 Mon Sep 17 00:00:00 2001 From: Tim Etchells Date: Fri, 9 Oct 2020 15:55:28 -0400 Subject: [PATCH] fix: webpack-dev-server proxy hostname (#4515) Switching the hostname from 'localhost' to the ipv6 '[::1]' fixes the dev server proxy https://github.com/webpack/webpack-dev-server/issues/793#issuecomment-316650146 Signed-off-by: Tim Etchells --- ui/src/app/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/app/webpack.config.js b/ui/src/app/webpack.config.js index 357f2a8de6..8c254f5d53 100644 --- a/ui/src/app/webpack.config.js +++ b/ui/src/app/webpack.config.js @@ -10,7 +10,7 @@ const path = require('path'); const isProd = process.env.NODE_ENV === 'production'; const proxyConf = { - 'target': process.env.ARGOCD_API_URL || 'http://localhost:8080', + 'target': process.env.ARGOCD_API_URL || 'http://[::1]:8080', 'secure': false, };