title: Connection refused with Status-Code 0 in Angular app
body: <p>I have built my Angular App and uploaded it to my Vserver. The app is connecting to my REST-API as follows: </p>
  
  <pre><code>public getContent(): Observable&lt;void&gt; {
   const headers: Headers = new Headers();
   headers.append('Content-Type', 'application/json');
   return this.http
   .get(this.api, JSON.stringify([]), { headers: headers })
   .map(response =&gt; response.json())
   })
   .catch((e) =&gt; this.errorHandler(e, this.router));
  }
  </code></pre>
  
  <p>Furthermore the REST-API is based on express and is started on the same Vserver. It is listening to port 8080 on localhost. </p>
  
  <p>When I try to start the Angular App I get the following error: </p>
  
  <blockquote>
    <p>ERR_CONNECTION_REFUSED with statusCode = 0.</p>
  </blockquote>