WKWebView - Origin null is not allowed by Access-Control-Allow-Origin

After seeing this blog post, I was super pumped to try out WKWebView. However, after adding the plugin, my http requests result in “Origin null is not allowed by Access-Control-Allow-Origin”. It seems like this would be a pretty common problem. After looking around online, it seems like people are experiencing similar issues, but I have yet to find a conclusive solution. Even in the post announcing WKWebView, someone commented that they had this problem, but no one has responded. Has anyone had any luck addressing this issue? I would appreciate any help.

1 Like

I have the same issue…

But I haven’t been able to track down the exact scenario this occurs as it only occurs on one request. Works fine in all of my GET requests but one of my POST requests this is an issue…

I was getting a similar issue, but i had installed WKWebView at one point had problems and removed it


it didn’t really remove it, was still in plugins directory, and still causing problems with null origin even though no config file pointed to it

so i removed dir by hand did a

ionic platform rm ios
ionic platform add ios

and then and only then flipped back to using the old webview

1 Like