解决ios关于:ERROR Internal navigation rejected

在mac上,cordova打包ionic项目为苹果手机app出现 这个问题:ERROR Internal navigation rejected - <allow-navigation> not set for url='about:blank'

解决方案:

出现这个错误的原因是因为没有设置白名单打开项目的config.xml文件添加这一句

 

<allow-navigation href="*" />

 

 

 

然后重新编译,问题解决。

就是这么简单。

原文地址:https://www.cnblogs.com/huangenai/p/7339209.html