ERROR Internal navigation rejected - not set for url='xxx'

在cordova開發中如果出現 ERROR Internal navigation rejected - <allow-navigation> not set for url='xxx' 錯誤。

原因:沒有設置白名單,ios9+拒絕請求。

解決方案: 在config.xml文件中配置  

<allow-navigation href="*" />  //即允許跳轉到任意http協議的頁面

運行  ok

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章