This topic created in 2914 days ago, the information mentioned may be changed or developed.
- 在 a.site.com 跨域请求了 b.site.com 的接口(注意是二级域)
- 在发起的前端 ajax 请求中已经设置了 crossDomain 为 true, 并且 withCredentials 为 true
- b.site.com 的接口正确返回了结果
- 但浏览器端依然报错:Refused to set unsafe header "Cookie"
环境:chrome。向各位大神求解
 |
|
1
kfll May 6, 2018 via iPhone
Ajax 不允许手动指定 Cookie Header,详见 MDN
|