alssl-ross removed a comment 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:
us...@infra.apache.org



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

Reply via email to