在cordova開發中如果出現 ERROR Internal navigation rejected - <allow-navigation> not set for url='xxx' 錯誤。
原因:沒有設置白名單,ios9+拒絕請求。
解決方案: 在config.xml文件中配置
<allow-navigation href="*" /> //即允許跳轉到任意http協議的頁面
運行 ok
在cordova開發中如果出現 ERROR Internal navigation rejected - <allow-navigation> not set for url='xxx' 錯誤。
原因:沒有設置白名單,ios9+拒絕請求。
解決方案: 在config.xml文件中配置
<allow-navigation href="*" /> //即允許跳轉到任意http協議的頁面
運行 ok