Reputation: 67
I'm trying to run my Ionic app on an IOS device but it does not work correctly. I'm using Meteor as my backend/api. When I build my app, it does actually start up the app and brings me to the login screen, but I can't login..
This is the error message I get after trying to login:
ERROR: {"_body":{"isTrusted":true},"status":0,"ok":false,"statusText":"","headers":{},"type":3,"url":null}
I build my IOS app like this:
Running the app on my device by booting from Xcode does not work either.
Can someone help me out?
Upvotes: 0
Views: 120
Reputation: 4769
While building IOS app from IONIC, you need to allow the cross origin platform header because IOS in default uses web view which needs the CORS allowed. You can either append ('access-control-allow-origin', '*') in the headers for every http request.
Or
You have to allow the CORS in the backend
Upvotes: 1