由于刚接触ionic+angluarjs的移动开发,遇到个坑,折腾了半天解决了

在ionic.config.json里面加入:

{
  "name": "ionic",
  "app_id": "",
  "type": "ionic-angular",
  "proxies": [
    {
      "path": "/proxyApi",
      "proxyUrl": "http://localhost:9999"
    }
  ],
  "integrations": {
    "cordova": {}
  }
}

记得ionic serve重启项目才能生效

ionic浏览器测试跨域解决方法

相关文章:

  • 2021-08-12
  • 2021-10-27
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
猜你喜欢
  • 2021-12-30
  • 2022-12-23
  • 2022-03-01
  • 2021-03-31
  • 2022-12-23
  • 2021-12-02
相关资源
相似解决方案