Closed frankois944 closed 6 years ago
@frankois944 The plugin is specifically checking that the target file is within the "www" folder of the application bundle. This is where the index.html file is served from defining the document root. The cordova file plugin should be used for reading files outside the www folder of the applications bundle.
Hello, This plugin can't get file inside the sandbox but inside the bundle yes
I saw inside the CDVWKWebViewFileXhr.m, you check if the file want to go to the bundle with the method isWebContentResourceSecure. So why not check if we want to go to the sandbox?
Like to add this method in CDVWKWebViewFileXhr.m :
and add this condition inside readAsText line 178:
Thanks