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/06/09 16:46:45 UTC

[GitHub] [cordova-ios] alssl-ross commented on issue #883: No local file access

alssl-ross commented on issue #883:
URL: https://github.com/apache/cordova-ios/issues/883#issuecomment-641426056


   I'm seeing a similar thing using XHR.
   
   Using Cordova-ios 6.0.0 and setting the WKURLSchemeHandler settings to "app" and "localhost" as per the [blog post](https://cordova.apache.org/announcements/2020/06/01/cordova-ios-release-6.0.0.html), I'm getting CORS errors when I try and access files in the app directory.
   
   I had to add 'app:' to the Content Security Policy content-src setting for the page which gets past the initial error, but then I get an error:
   
   `Origin app://localhost is not allowed by Access-Control-Allow-Origin.`
   
   `XMLHTTPRequest cannot load app:///Users/.../Library/Developer/CoreSimulator/Devices/.../data/Containers/Data/Application/.../Documents/data/menu/menu.dat due to access control checks.`


----------------------------------------------------------------
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