1、sockjs.js?9be2:1606 GET http://localhost:8566/sockjs-node/info?t=1569478261510 net::ERR_CONNECTION_REFUSED
https://segmentfault.com/q/1010000005045512
proxy: { '/': { target: 'http://192.168.0.102:8082', changeOrigin: true, ws: false, //值为false防止控制台报错★★★★★★★★ pathRewrite: { //▼或者后台接口统一加一个前缀如api,然后这里不写 '^/' 写 '^/api'。 '^/': '', }, }, },
2、Failed to load resource: net::ERR_CONNECTION_REFUSED
https://blog.csdn.net/a386139471/article/details/79978198
将请求协议由http换成了https