withCredentials

当配置了 xhr.withCredentials = true时,必须在后端增加 response 头信息Access-Control-Allow-Origin,且必须指定域名,而不能指定为*。

posted on 2021-02-23 16:49  cag2050  阅读(114)  评论(0编辑  收藏  举报

导航