ionic 打包成apk后,所有網絡請求404


無論怎么改 config.xml 

<allow-navigation href="http://*/*" />
  <allow-intent href="*" />
  <access origin="*" />

都是沒效果的,后來在

http://stackoverflow.com/questions/30161952/ionic-angular-how-to-avoid-the-404-not-found-from-cache-after-post-reque

上找到了答案

先卸載白名單插件,再安裝一遍

cordova plugin remove cordova-plugin-whitelist

cordova plugin add cordova-plugin-whitelist

沒人知道為什么,但是它就是好的


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM