You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/12/22 09:48:08 UTC

[GitHub] [cordova-plugin-file] LonestarX91 edited a comment on pull request #358: fix(ios) issue #349 - navigate to cdvfile with wkwebview

LonestarX91 edited a comment on pull request #358:
URL: https://github.com/apache/cordova-plugin-file/pull/358#issuecomment-749451416


   @Lindsay-Needs-Sleep desperately need your help please :/
   cordova ios 6.1.1 / 10.0.0, ios 14.3
   [blocked] The page at [mysite] was not allowed to run insecure content from dani://localhost/bundle/www/cordova.js. when trying to load my local cordova from the remote web page. 
   CORS = <meta http-equiv="Content-Security-Policy" content="default-src * dani: gap://ready file: cdvfile: data:; script-src * 'self' dani: file: cdvfile: 'unsafe-inline' 'unsafe-eval'"> 
   Plugins:
   
   cordova-plugin-dialogs 2.0.2 "Notification"
   cordova-plugin-file 6.0.2 "File"
   cordova-plugin-globalization 1.11.0 "Globalization"
   cordova-plugin-iroot 2.0.2 "iRoot"
   cordova-plugin-optionsmenu 1.0.23 "OptionsMenu"
   cordova-plugin-whitelist 1.3.4 "Whitelist"
   cordova-plugin-wkwebview-engine 1.2.1 "Cordova WKWebView Engine"
   cordova-plugin-wkwebview-file-xhr 3.0.0 "Cordova WKWebView File XHR Plugin"
   
   tried with both cdvfile:// scheme as well as the custom one you see above
   WKURLSchemeHandler's startURLSchemeTask is not even called
   
   Code for loading the js:
   
   ```
   url = "https://localhost/bundle/www/cordova.js";
   				var el = document.createElement('script');
   				el.id = "123";
   				el.onerror = function () {
   					if (el.onerror) show_error("Cordova js not found")
   				}
   				el.onload = function () {
   				}
   				el.src = url;
   				document.body.appendChild(el);
   ```
   
   Any thoughts, ideas, prayers ?
   
   thanks


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org