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策略阻止:飛行前響應中的訪問控制允許標頭不允許使用請求標頭字段令牌。
問題:后台接口可以在瀏覽器上進行訪問,但本機訪問不到,報跨域。
