h***@163.com
h***@163.com
  • 发布:2019-10-21 18:29
  • 更新:2020-10-19 17:50
  • 阅读:2943

刚创建的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

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

  • h***@163.com (作者)

    现在找到错误了,是谷歌浏览器的插件问题

    2019-10-22 15:05

  • 1***@163.com

    回复 h***@163.com: 你好,请问是哪个插件导致的呢,我这也出现了

    2019-12-18 09:45

  • b***@163.com

    回复 1***@163.com: 看你是不是装有跨域的插件

    2020-02-17 21:05

露珠

露珠

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

Meaty

Meaty - 95IT

chunk-vendors.js:76797 WebSocket connection to 'ws://localhost:8080/sockjs-node/673/txedzi0i/websocket' failed: WebSocket is closed before the connection is established.
我报这个,调试特慢

该问题目前已经被锁定, 无法添加新回复