CORS for IOS WKWEBVIEW

When I am using api call for ios i am getting cors issue beacuse of WKWEBVIEW plugin. How can I get rid of this issue.

[Error] XMLHttpRequest cannot load . Origin http://192.168.1.55:8100 is not allowed by Access-Control-Allow-Origin.

Did you read http://ionicframework.com/docs/wkwebview/?

Yes I have gone through that but only problem is there not the solution I am looking for.

I make it easy for you:

Fix this. Add the origin to the “Access-Control-Allow-Origin” header.

1 Like

I have added this header to the backend code enable this for all the remote apis.

1 Like