在运行VUE项目时,控制台反复提示,websocket连接总是提示错误 WebSocket connection to 'ws:
WebSocket connection to 'ws://localhost:83/sockjs-node/217/zhqr4t5o/websocket' failed: Invalid frame header sockjs.js:1684
WebSocket connection to 'ws://192.168.*.*/sockjs-node/217/zhqr4t5o/websocket' failed: Invalid frame header sockjs.js:1684
解决方法:
vue.config.js中配置devServer.proxy的ws为false