Ionic2 ion Webview(WKWebView) causing Cors Issue


#1


#2

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?


#3

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


#4

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.


#5

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


#6

Did you read the docs?


#7

Take a look at this: