Script 做API请求跨域问题
“Request header field ### is not allowed by Access-Control-Allow-Headers in preflight response.”此句话告诉我们:您的请求头中的###不被接口提前允许。Preflight response (提前允许): 前端跨域访问,当前端发起请求时,浏览器会先发起OPTIONS请求,如果服务器允许,返回响应...