2021-11-08
Access to XMLHttpRequest at '请求的网络地址' from origin 'http://localhost:8001' has been blocked by CORS policy: Request header field token is not allowed by Access-Control-Allow-Headers in preflight response.
翻译:
访问位于“”的XMLHttpRequest请求的网络地址“起源”http://localhost:8001'已被CORS策略阻止:飞行前响应中的访问控制允许标头不允许使用请求标头字段令牌。
问题:后台接口可以在浏览器上进行访问,但本机访问不到,报跨域。