You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
Seems like WKWebView in iOS 8 doesn't support loading content via XMLHttpRequest due to CORS enforcement. In iOS 9 maybe [WKWebView loadFileURL:allowingReadAccessToURL:] can work (reference). I just tried crosswalk-ios 1.2 in iOS 9 and hit this error. Any ideas of how to load local files via files:/// protocol?
The text was updated successfully, but these errors were encountered:
@rayshan Thanks for trying Crosswalk. The implementation of [XWalkView loadFileURL:allowingReadAccessToURL:] in iOS 9 is to hook up WKWebView's same api, so it should behave the same as WKWebView. Would you please elaborate or paste your error log here for us to identify the issue? That would be really helpful.
My pleasure! No files:/// isn't a typo. This is the error message:
XMLHttpRequest cannot load file:///Users/rayshan/Library/Developer/CoreSimulator/Devices/xxx/data/Containers/Bundle/Application/xxx/crosswalk.app/www/package.json. Cross origin requests are only supported for HTTP.
大家好,
Seems like
WKWebView
in iOS 8 doesn't support loading content viaXMLHttpRequest
due to CORS enforcement. In iOS 9 maybe[WKWebView loadFileURL:allowingReadAccessToURL:]
can work (reference). I just tried crosswalk-ios 1.2 in iOS 9 and hit this error. Any ideas of how to load local files viafiles:///
protocol?The text was updated successfully, but these errors were encountered: