uni-app h5反向代理配置,解决跨域问题

uni-app h5反向代理配置,解决跨域问题 : 

调用:

比如我的接口是 https://www.xxxxxx.com/api-test/api/index/index

配置了反向代理后只要这样写:  /mobile_api/api/index/index,    /loc会被替换成配置中的target的地址,配置完后记得重新编译

猜你喜欢

转载自blog.csdn.net/Xl4277/article/details/108255064
今日推荐