Access to XMLHttpRequest at xxxx from origin xxx has been blocked by CORS policy: No 'Access-Control- Allow-Origin' header is present on the requested resource
错误:控制台报错 ;
network 自动发起了请求:
解决办法:
找到 \node_modules\sockjs-client\dist\sockjs.js 文件
然后 crtl + g 快捷键跳转到 1603 行 ,把他 注释掉 即可 ;ps:不需要重新启动 ;