码迷,mamicode.com
首页 > 移动开发 > 详细

xamarin android webview XHR错误

时间:2016-07-03 11:38:23      阅读:435      评论:0      收藏:0      [点我收藏+]

标签:

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

标签:

原文地址:http://www.cnblogs.com/LittleFeiHu/p/5636965.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!