跨域问题解决
程序员文章站
2022-06-29 20:58:57
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 ......
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
解决办法是把*改为指定地址
上一篇: 别看赤小豆小小个,吃了好处多,还是祛湿、通乳良品!
下一篇: 中秋节吃板栗的由来,还有这个也必须吃