首页 > 其他分享 >Access to XMLHttpRequest at xxxx from origin xxx has been blocked by CORS policy: No 'Access-

Access to XMLHttpRequest at xxxx from origin xxx has been blocked by CORS policy: No 'Access-

时间:2022-10-28 14:58:46浏览次数:85  
标签:origin Control XMLHttpRequest No Access header blocked

错误:控制台报错 ;

 network 自动发起了请求:

 解决办法:

找到 \node_modules\sockjs-client\dist\sockjs.js  文件 

然后 crtl + g 快捷键跳转到 1603 行 ,把他 注释掉 即可 ;ps:不需要重新启动 ;

标签:origin,Control,XMLHttpRequest,No,Access,header,blocked
From: https://www.cnblogs.com/zhulongxu/p/16836063.html

相关文章