title: Angular Proxy timeout when trying to reach extrenal api
body: <p>I have configured an Angular application to work with an Angular proxy. The Angular proxy is working fine when I'm redirecting API calls to local. But, when trying to connect to an external API, I'm getting a timeout.</p>
  <p>I'm behind an enterprise proxy. I have set up my NPM proxy configuration to point to that proxy, but I'm still getting an error.</p>
  <p>proxy.json config:</p>
  <pre><code>{
    &quot;/api&quot;: {
      &quot;target&quot;: &quot;https://demo.zhaidongxi.com/yii2-app-example-backend-api&quot;,
      &quot;secure&quot;: false,
      &quot;changeOrigin&quot;: true,
      &quot;pathRewrite&quot;: {
        &quot;^/api&quot;: &quot;&quot;
      },
      &quot;logLevel&quot;: &quot;debug&quot;
    }
  }
  </code></pre>
  <p>The error I'm getting:</p>
  <pre class="lang-none prettyprint-override"><code>[HPM] Rewriting path from &quot;/api/v1/login&quot; to &quot;/v1/login&quot;
  [HPM] POST /api/v1/login ~&gt; https://demo.zhaidongxi.com/yii2-app-example-backend-api
  [HPM] Error occurred while trying to proxy request /v1/login from localhost:4200 to https://demo.zhaidongxi.com/yii2-app-example-backend-api (ETIMEDOUT) (https://nodejs.org/api/errors.html#errors_common_system_errors)
  </code></pre>