我在使用 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/