Support CORS
This commit is contained in:
parent
4d6588f728
commit
1bff984079
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -190,6 +190,8 @@ public class MainActivity extends Activity {
|
|||
webView1.getSettings().supportMultipleWindows();
|
||||
// 支持获取手势焦点
|
||||
webView1.requestFocusFromTouch();
|
||||
// 允许跨域
|
||||
webView1.getSettings().setAllowUniversalAccessFromFileURLs(true);
|
||||
|
||||
webView1.setWebViewClient(new WebViewClient() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue