错误内部导航被拒绝 - <允许导航> IN
问题描述:
我在angularJS.I的离子应用程序中获得了下面的响应,我尝试在angularJS iframe中打开我的链接。错误内部导航被拒绝 - <允许导航> IN
ERROR Internal navigation rejected - <allow-navigation> not set for url='about:blank'
ERROR Internal navigation rejected - <allow-navigation> not set for url='https://ap.testing.com/testing/testing.s/testing'
但我试图添加下面的链接在我的cofig.xml中,但仍然我是同一问题请咨询如何解决。
<allow-navigation href="https://ap.testing.com/*" />
答
我遇到了这个问题,结果证明有两个config.xml文件。
AppName的/ config.xml中< - 在Xcode中这一项显示了
AppName的/平台/ IOS/AppName的/ config.xml中
我加
<allow-navigation href="*" />
到两个人身上,有效。使用6.3.0。
不需要在'AppName/platforms/ios/AppName/config.xml'中设置它;它是从第一个生成的。 –