(一) 当前端配置withCredentials=true时, 后端配置Access-Control-Allow-Origin不能为*, 必须是相应地址
(二) 当配置withCredentials=true时, 后端需配置Access-Control-Allow-Credentials
(三) 当前端配置请求头时, 后端需要配置Access-Control-Allow-Headers为对应的请求头集合
EGG 跨域 when the request‘s credentials mode is ‘include‘. The credentials mode of requests initiated
最新推荐文章于 2023-04-29 00:00:31 发布