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

相关文章:

  • 2023-03-10
  • 2022-01-07
  • 2022-01-23
  • 2021-04-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-15
  • 2022-12-23
  • 2021-05-08
  • 2021-04-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案