React Native调试器-CORB

时间:2019-03-04 23:17:24

标签: google-chrome react-native cross-origin-read-blocking

Chrome发生了更新,现在我无法通过Chrome浏览器调试React Native网络请求,因为它们被CORB(而非CORS)阻止了。

Cross-Origin Read Blocking (CORB) blocked cross-origin response https://example.com/my/url with MIME type application/json. See https://www.chromestatus.com/feature/5629709824032768 for more details.

请求标头

Accept: application/json, text/plain, */*
...

响应标题

Access-Control-Allow-Headers: authorization,x-goog-authuser
Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE
Access-Control-Allow-Origin: *
Allow: POST, GET, OPTIONS, PUT, DELETE

0 个答案:

没有答案