您的位置:首页 > 其它

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

2016-06-29 15:40 495 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  手机 chrome CROS