xamarin android webview XHR错误

Cross origin requests are only supported for protocol schemes

MLHttpRequest cannot load file:///F:/Git/Framework7/dist/about.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.a.ajax @ framework7.js:12387i.get @ framework7.js:1661i.router.load @ framework7.js:2653load @ framework7.js:636a @ framework7.js:7591i @ framework7.js:11561

解决方法:

localWebView.Settings.AllowFileAccessFromFileURLs = true;

xamarin android webview XHR错误

上一篇:『学了就忘』Linux日志管理 — 91、日志服务rsyslogd说明


下一篇:Apache Flume 1.7.0 发布,日志服务器