跨域问题解决
Posted zhouyg2017
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了跨域问题解决相关的知识,希望对你有一定的参考价值。
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
这个错误是由于同时设置了 Access-Control-Allow-Origin=* 和 Access-Control-Allow-Credentials=true
解决办法是把*改为指定域名
以上是关于跨域问题解决的主要内容,如果未能解决你的问题,请参考以下文章