1 背景 与第三方对接,发现options请求正常,但是剩下的get请求没发出去。 2 排查 在浏览器中模拟请求,获取报错信息。 重点信息 Request header field x-requested-with is not allowed by Access-Control-Allow-Headers in preflight response. 还有这种 No 'Access-Control-Allow-Origin' header is present on the requested resource. 这句话什么意思呢?