title: Angular-CLI proxy to backend doesn't work
body: <p><a href="https://github.com/angular/angular-cli#proxy-to-backend" rel="noreferrer">https://github.com/angular/angular-cli#proxy-to-backend</a> here is an instruction how to do proxying to backend. I did everything step by step and still requests aren't proxied.</p>
  <p>8080 - my Express backend
  4200 - my Angular2 frontend</p>
  <p>In Angular2 project I have file <code>proxy.conf.json</code> with content like this:</p>
  <pre><code>{
    &quot;/api&quot;: {
      &quot;target&quot;: &quot;http://localhost:8080&quot;,
      &quot;secure&quot;: false
    }
  }
  </code></pre>
  <p>In Angular2 package.json I changed <code>start</code> procedure to <code>&quot;start&quot;: &quot;ng serve --proxy-config proxy.conf.json&quot;</code></p>
  <p>When I type inside commander <code>npm start</code> then at the start I can see <code>Proxy created: /api -&gt; http://localhost:8080</code>. Well, so far is good I guess.</p>
  <p>I'm trying to send a request (Angular2)</p>
  <pre><code>  constructor(private http: Http) {
      this.getAnswer();
    }
  
    getAnswer(): any {
      return this.http.get(&quot;/api/hello&quot;)
        .subscribe(response =&gt; {
          console.log(response);
        })
    }
  </code></pre>
  <p>I'm getting an error that <code>http://localhost:4200/api/hello 404 (Not Found)</code>. As we can see, nothing has been proxied. Why? Did I do something wrong?</p>
  <p>To be clear. When I go manually to <code>http://localhost:8080/hello</code>, all works fine. There is nothing to look for in backend side.</p>