CORS for IOS WKWEBVIEW


#1

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.


#2

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


#3

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


#4

I make it easy for you:

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


#5

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