Hi All,
I got into an issue, $http calls won’t work on emulator or ionic view app
I am trying to access
- Server (which has REST apis) on the same network and
- Google (https://www.google.com/finance/info?q=AAPL)
I started chrome by enabling this flag “–disable-web-security”, ionic serve works fine and connects to both the servers
On emulator, I am getting status of “-1” when trying to connect to the two apis above.
Im getting this response back
response {“data”:null,“status”:-1,“config”:{“method”:“GET”,“transformRequest”:[null],“transformResponse”:[null],“url”:“http://www.google.com/finance/info?q=AAPL",“headers”:{“Accept”:"application/json, text/plain, /”}},“statusText”:""}
Can someone please help me on what -1 status mean and how to fix that?
Thanks in advance