当前位置: 移动技术网 > IT编程>开发语言>.net > 跨域问题解决

跨域问题解决

2019年11月21日  | 移动技术网IT编程  | 我要评论

魂斗罗3代,网贷头条,2011-2012欧冠

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

解决办法是把*改为指定地址

 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网