- 我要请求的 地址是 http://192.168.2.125:8080/WX/user/WXRegister
-
我配置的 Proxytable 如下
proxyTable:{'/api': { target:'http://192.168.2.125:8080', changeOrigin:true, pathRewrite: { '^/api': '' } }
},
-
我请求的 axios 如下
this.axios({method:'post', url:'/api/WX/user/WXRegister', data:{ ...obj, sign:getSign(obj)
}
}).then(res=>{console.log(res,'有数据吗')
})
- 然后 网页报如下错误
POST http://localhost:8080/api/WX/user/WXRegister 504 (Gateway Timeout)
5.控制台报 如下错误
[HPM] Error occurred while trying to proxy request /WX/user/WXRegister from localhost:8080 to http://192.168.2.125:8080 (ECONNREFUSED) (https://nodejs.org/api/errors...
求教!!
检查一下防火墙,把本机的防火墙关闭掉。