Can xhr work with WKWebView?


#1

Set up WKWebView in my ionic project according to http://ionicframework.com/docs/wkwebview/. It can work in browser serve mode. But xhr cannot work on real iphone.

  1. I added <allow-navigation href=“http://localhost:8080/*” / > to config.xml
  2. I added @CrossOrigin to web controller of server
  3. I added “proxy_set_header Access-Control-Allow-Origin *” to nginx configuration

Is there anyone who made it work?