Ajax not working in CefSharp based WebView with local files

寵の児 提交于 2019-12-11 19:23:46

问题


I have successfully embedded CefSharp in win form application using VS-2008 i am loading a jQueryMobile based webpage in webView which uses #id based ajax calls. which are not working in webView. Is there any way to disable the security so i can load local files in the webview ?


回答1:


got the answer by my self just needed a single line to do it

_browserSettings.FileAccessFromFileUrlsAllowed = true;


来源:https://stackoverflow.com/questions/24291510/ajax-not-working-in-cefsharp-based-webview-with-local-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!