huangzhiyong1216@163.com
huangzhiyong1216@163.com
  • 发布:2019-10-21 18:29
  • 更新:2020-03-16 17:04
  • 阅读:820

刚创建的uni-app,运行不出错,但是谷歌浏览器控制台显示出错?

分类:uni-app

出错代码:Access to XMLHttpRequest at 'http://192.168.1.104:8080/sockjs-node/info?t=1571652961162' from origin 'http://localhost:8080' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

2019-10-21 18:29 负责人:无 分享
已邀请:
DCloud_UNI_GSQ

DCloud_UNI_GSQ

如果应用功能无问题,请忽略

DCloud_UNI_GSQ

DCloud_UNI_GSQ

这个请求是热编译用的,看起来是你使用插件改了所有请求的响应头

露珠

露珠

确实是跨域插件弄出来的,我把跨域插件停用就好了

要回复问题请先登录注册