2016-06-28 52 views
1

我在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/*" /> 

回答

6

我遇到了這個問題,結果證明有兩個config.xml文件。

AppName的/ config.xml中< - 在Xcode中這一項顯示了

AppName的/平臺/ IOS/AppName的/ config.xml中

我加

<allow-navigation href="*" /> 

到兩個人身上,有效。使用6.3.0。

+1

不需要在'AppName/platforms/ios/AppName/config.xml'中設置它;它是從第一個生成的。 –