Hi guys, going round in circles on this one…
Here are the response codes when testing in chrome via ionic serve:
- works in ionic serve
- does not work in xcode emulator
- pulling data from a live server with “Access-Control-Allow-Origin: *”
- can access the live server from Safari inside the Emulator
From the xcode debug console I can see the $http is getting a status:0 response:
RROR: ERR {“data”:null,“status”:0,“config”:{“method”:“GET”,“transformRequest”:[null],“transformResponse”:[null],“url”:“my-url-is-here”,“headers”:{“Accept”:“application/json, text/plain, /”}},“statusText”:""}
Any suggestions?