Ionic2 ion Webview(WKWebView) causing Cors Issue



What kind of issues? It’s not so much that it’s causing CORS issues, it’s just respecting CORS. What actual errors are you seeing?


I do not have this problem before i add ion-webview


So, if you control the API you need to add the

Access-Control-Allow-Origin: *

header. If not, you need to enable a proxy. Search the forum, this is one of the most commonly asked questions.


Can you please direct me how to enable proxy on WkWebView.


Did you read the docs?


Take a look at this: