在 vue
推崇的插件 axios
中 ,并没有 jsonp
功能, 因此可以配置一个代理服务器中转请求,如下图

school代表了一个表示,假如我们现在要请求的接口为
https://school.jingjing100.com/school/integralManagementOrder.do?method=getIntegralTeamOrderV31
,在配置好之后 ,我们发送请求的时候只需要这样
这样就完成了中转。
在 vue
推崇的插件 axios
中 ,并没有 jsonp
功能, 因此可以配置一个代理服务器中转请求,如下图
https://school.jingjing100.com/school/integralManagementOrder.do?method=getIntegralTeamOrderV31
,在配置好之后 ,我们发送请求的时候只需要这样这样就完成了中转。
本文标题:vue项目配置代理服务器中转请求
本文链接:https://www.haomeiwen.com/subject/qmmvqftx.html
网友评论