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
先不要下载!!!!!我周末看看是不是有问题,如果下载了请在评论留言,我看看如何把分退给你。
这个压缩包下面的android-chromium-view-master\content_shell_apk\bin\conent-shell-apk.apk\conent-shell-apk.apk
比较久远的项目,今天在vivo x21a, android 8.1.0试下,试完会更新这篇文章。
用不了,不要下载!!!!!改天我弄一个新的。非常抱歉。
http://download.csdn.net/detail/abcd1101/9563020