Hello, I am using XWalk 15 in my Android app in embedded mode to display an external webpage if requested by the user. Some resources from the webpage are downloaded and stored locally in /mnt/sdcard/Android/data/package_name/files/file-19182323.cache for example. I am trying to load this file from the local storage in the webpage but whatever I do, I get the following error:
I/chromium: [INFO:CONSOLE(0)] "Not allowed to load local resource: /mnt/sdcard/Android/data/package_name/files/file-19182323.cache", source: https://my.server.com/apps/index.html I tried the following: Set CSP: <meta http-equiv="Content-Security-Policy" content="default-src http://* https://* file://*"> Set the following options in Android: XWalkPreferences.setValue(XWalkPreferences.ALLOW_UNIVERSAL_ACCESS_FROM_FILE, true); xWalkSettings.setJavaScriptEnabled(true); xWalkSettings.setDomStorageEnabled(true); xWalkSettings.setAllowFileAccess(true); xWalkSettings.setAllowFileAccessFromFileURLs(true); xWalkSettings.setAllowUniversalAccessFromFileURLs(true); Can anyone please help me resolve this issue? Thanks a lot! Bo
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
