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

没人知道为什么,但是它就是好的

posted @ 2016-11-27 01:21  白菜89  阅读(2794)  评论(2编辑  收藏  举报