title: Angular 6 proxy not working anymore
body: <p>I have an angular application and one web api. To test is locally, I use a proxy config file: proxy.conf.json</p>
  
  <pre><code>{
  "/api": {
      "target": {
          "host": "localhost",
          "protocol": "http:",
          "port": 50565
      },
      "secure": false,
      "changeOrigin": false,
      "logLevel": "info"
      }
  }
  </code></pre>
  
  <p>Everything was working fine. Recently I updated to ng6. Since then I get the following error: </p>
  
  <p>[HPM] Error occurred while trying to proxy request /api/data/GetCurrentUser/ from localhost:4200 to <a href="http://localhost:50565" rel="nofollow noreferrer">http://localhost:50565</a> (ECONNREFUSED)</p>
  
  <p>Any idea what's going on here? (I use ng serve --proxy-config proxy.conf.json)</p>