breautek commented on issue #155:
URL: 
https://github.com/apache/cordova-plugin-wkwebview-engine/issues/155#issuecomment-635361437


   > As for AJAX calls instead, they can be done, but only with the CORS 
parameters, correct? Or can't they just do it?
   
   If you're making a request to a remote server, then you must implement the 
[CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) features on the 
web server. (ie responding to the `OPTIONS` preflight request, and return the 
appropriate `Access-Control-*` headers. It's a big topic but MDN has a good 
resource on this.
   
   If you're trying to use ajax on a `file://` url to fetch something from the 
local filesystem, you'll need 
[cordova-plugin-wkwebiew-xhr-fix](https://github.com/oracle/cordova-plugin-wkwebview-file-xhr)
 plugin.
   
   If your app release is not urgent, you may want to consider waiting a few 
days to see if `cordova-ios@6` is released (currently in the voting process), 
so you can take advantage of custom schemes, which should make the xhr fix 
plugin redundant, and you also won't need this plugin since it incorporates 
wkwebview into its core.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to