跨域问题,当mode为include时,Access-Control-Allow-Origin不能为*,

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'.

目前按照大部分教程的设置
图片描述
图片描述
图片描述

还有哪里要改嘛?GOOGLE一些教程还是提示这个。
以及,proxyTable的端口设置无效,我在get中请求的是http://localhost:3000/news/news返回304外加上面的提示。
出站加了3000端口,浏览器访问正常,可以拿到json数据
vue+node,Nginx, 阿里云。

阅读 4.1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题