怎么在手机调用disable-web-security来访问跨域网页

来源:互联网 发布:什么是敏捷软件开发 编辑:程序博客网 时间:2024/04/29 07:44
android-chromium-view是一个浏览器(好像是会调用chrome的)的开源项目,在里面的content-shell-apk里的ContentShellActivity 里面调用
CommandLine.getInstance().appendSwitch("disable-web-security");
CommandLine.getInstance().appendSwitch("allow-file-access-from-files");

CommandLine.getInstance().appendSwitch("ignore-certificate-errors");



然后运行这个项目,就可以访问跨域的网页了。


这是已经可以用的project,在bin里就有apk

http://download.csdn.net/detail/abcd1101/9563020

0 0
原创粉丝点击