withCredentials的值要么true,要么false,
表示当前请求为跨域类型时是否在请求中协带cookie。
当配置了withCredentials = true时,必须在后端增加 response 头信息Access-Control-Allow-Origin,且必须指定域名,而不能指定为*。
ajax中的withCredentials使用效果
猜你喜欢
转载自blog.csdn.net/weixin_43871678/article/details/115205963
今日推荐
周排行