Support CORS

This commit is contained in:
sonichy 2019-02-19 12:38:15 +08:00
parent 4d6588f728
commit 1bff984079
5 changed files with 6 additions and 3 deletions

BIN
app.apk

Binary file not shown.

View File

@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hty.browser"
android:versionCode="3"
android:versionName="3.11">
android:versionName="3.12">
<uses-sdk
android:minSdkVersion="16"

View File

@ -9,7 +9,7 @@ p { text-indent:2em; }
</style>
</head>
<body>
<h2 align=center><img src=logo.png><br>海天鹰浏览器 V3.11</h2>
<h2 align=center><img src=logo.png><br>海天鹰浏览器 V3.12</h2>
<p>内置扩展的浏览器。</p>
<p>扩展:链接关键字过滤,链接关键字高亮,图片自定义过滤,视频独立播放。</p>
<p>作者:黄颖</p>
@ -19,6 +19,7 @@ p { text-indent:2em; }
<p><a href="https://www.jianshu.com/p/6e38e1ef203a" target="_blank">Android WebView 三种文件下载方式</a></p>
<p><a href="https://blog.csdn.net/lowprofile_coding/article/details/77852131" target="_blank">自动安装apk包</a></p>
<h3>更新日志:</h3>
<h3>V3.12 (2019-02-18)</h3><ol><li>支持跨域。</li></ol>
<h3>V3.11 (2019-02-13)</h3><ol><li>链接中的关键字屏蔽、高亮可设置。</li></ol>
<h3>V3.10 (2019-02-10)</h3><ol><li>增加:收藏前修改,收藏后修改,修改校验。</li></ol>
<h3>V3.9 (2018-12-20)</h3><ol><li>视频独立播放JS读不到iframe里的video使用跳转iframe代替。</li></ol>

View File

@ -190,6 +190,8 @@ public class MainActivity extends Activity {
webView1.getSettings().supportMultipleWindows();
// 支持获取手势焦点
webView1.requestFocusFromTouch();
// 允许跨域
webView1.getSettings().setAllowUniversalAccessFromFileURLs(true);
webView1.setWebViewClient(new WebViewClient() {
@Override

View File

@ -1 +1 @@
3.11
3.12