Angular 2: EXCEPTION: Response with status: 0 for URL: null
<p>I am trying to send a HTTP GET request from my Angular2/ionic2 app using <code>http.get</code>. The HTTP GET request contains a valid Linkedin access token and is supposed to return some profiledata. However, the following error occurs when <code>getProfileData()</code> is called:</p>

<pre><code>3     229881   group    EXCEPTION: Response with status: 0  for URL: null
4     229895   error    EXCEPTION: Response with status: 0  for URL: null
5     229909   groupEnd
6     229950   error    Uncaught Response with status: 0  for URL: null, http://192.168.178.49:8100/build/js/app.bundle.js, Line: 95774
</code></pre>

<p>Still:</p>

<ul>
<li>The GET request with the same URL works when tested on www.hurl.it</li>
<li>The GET request called from the app works with a different URL, e.g. <code>let URL = "https://httpbin.org/get?name=hannes"</code></li>
</ul>

<p>onboarding-load.ts:</p>

<pre><code>import { Component } from '@angular/core';
import { NavController, Platform, Alert } from 'ionic-angular';
import { OnboardingHelloPage } from '../onboarding-hello/onboarding-hello';
import { CordovaOauth, LinkedIn } from 'ng2-cordova-oauth/core';    
import { Http, Headers, RequestOptions } from '@angular/http';
import 'rxjs/add/operator/map'


@Component({
  templateUrl: 'build/pages/onboarding-load/onboarding-load.html',
})
export class OnboardingLoadPage {
  private data;
  private code;

constructor(private navCtrl: NavController, private platform: Platform, private http: Http) {
    this.http = http;
    this.navCtrl = navCtrl;
  }

public getProfileData() {
  let URL = "https://api.linkedin.com/v1/people/~?oauth2_access_token=SOMEVALIDTOKEN&amp;format=json";
  //let URL = "https://httpbin.org/get?name=hannes"

  this.http.get(URL)
    .map(res =&gt; res.json())
    .subscribe(data =&gt; {
      this.data = data;
      console.log(JSON.stringify(data));
  });
  // go to next page
  this.viewOnboardingHello();
}
...
}
</code></pre>