ios - 错误内部导航被拒绝 - <allow-navigation> IN

标签 ios angularjs iframe ionic-framework

我在使用 angularJS 的 ionic 应用程序中收到以下响应。我尝试在 angularJS iframe 中打开我的链接。

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/platforms/ios/AppName/config.xml

我加了

<allow-navigation href="*" /> 

对他们俩都有效。使用 6.3.0。

关于ios - 错误内部导航被拒绝 - <allow-navigation> IN,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38073436/

相关文章:

ios - 如何在 iOS 中以编程方式在 UITableViewCells 中添加图像

iOS 首次启动之旅——检测应用是否首次启动

javascript - 如果 iframe 在 src 中有非 html 文档(pdf 或文本),则 iframe 中的 onload 不起作用

javascript - 禁止访问源为 'null' 的 Iframe

javascript - 将搜索重定向到 Google Search Appliance 结果页面

ios - 在 iOS 设备上查找正确的时间

ios - viewcontroller 中的标签填充速度非常慢

html - ng-view高度100%溢出

javascript - 如何在使用 ng-options 创建的 html 下拉列表中设置默认值

javascript - 消失/重新出现的 JSON 数据