EXCEPTION: Response with status: 0 for URL: null in angular2
<p>I'm getting following exception, when I'm trying to connect to remote API using anguar2 http. Also my web server is receiving request and responding properly.</p>

<p>I'm able to make a successful curl request to the local server.</p>

<pre><code>EXCEPTION: Response with status: 0 for URL: null
</code></pre>

<p>service.ts</p>

<pre><code>getAllProducts(): Observable&lt;string&gt; {
      return this.http.get(this.productUrl)
      .map(this.extractData)
}

private extractData(res: Response) {
    let body = res.json();
    console.log(body)
    return body.data || { };
}
</code></pre>