04-28 16:06:29.756:W / SystemWebViewClient(16778):白名单拦截的网址: [英] 04-28 16:06:29.756: W/SystemWebViewClient(16778): URL blocked by whitelist:

查看:599
本文介绍了04-28 16:06:29.756:W / SystemWebViewClient(16778):白名单拦截的网址:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我更新离子和cordova时,出现这个问题,$ http不能正常工作,总是返回null。在调试行显示04-28 16:06:29.756:W / SystemWebViewClient(16778):URL被白名单阻止:

This problem appeared when I update the ionic and cordova, $http can't normally work any more, always return null. in debug line apeared "04-28 16:06:29.756: W/SystemWebViewClient(16778): URL blocked by whitelist:"

推荐答案

p>这个错误发生在cordova 更新5.0.0 之后。

This error happened after cordova update 5.0.0.

像 Santosh 说,您只需要添加插件 https://github.com/apache/cordova-plugin-whitelist.git 到您的应用程序,一切都将工作。

Like Santosh said, you just need add the plugin https://github.com/apache/cordova-plugin-whitelist.git to your app and everything will work. I was getting the same error and i fixed with this plugin.

您需要在您的webconfig文件中添加以下代码:

You will need add the follow code to your webconfig file:

<allow-navigation href="http://yourDomain.com/*" />

这篇关于04-28 16:06:29.756:W / SystemWebViewClient(16778):白名单拦截的网址:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆