cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [cordova-plugin-wkwebview-engine] breautek commented on issue #143: Blank screen after using plugin-wkwebview-engine
Date Wed, 22 Apr 2020 13:31:29 GMT

breautek commented on issue #143:

   With `WKWebView`, you have to obey [CORS](
   Normally, you have to modify your webserver to add the appropriate CORS headers, but since
you're using XHR requests on local files, there is obviously no webserver at play here, so
adding those appropriate headers becomes difficult.
   The solution is to either use [cordova-plugin-file]() to load those files using the filesystem
APIs instead
   Use the third-party [cordova-plugin-wkwebview-file-xhr](
plugin which intercepts the XHR requests and excluding the `origin` header.
   For your case, since it looks like angular is the one making those requests, you're probably
best off on using the wkwebview-file-xhr plugin. Be sure to read their known issues to determine
if you'll be affected by it.
   Let me know if this helps.

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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message