然后跨域请求时会出现如下问题: Response to preflight request doesn't pass access control check: 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'. Origin 'http://localhost:8080' is therefore ...
ctx.set("Access-Control-Allow-Credentials",true); 3.Access-Control-Allow-Headers 允许设置的头部信息 ("Access-Control-Allow-Headers","Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild") 4.Access-Control-Allow-Methods设置允许请求的Methods方法 res.header('Access...