Google chrome React本机调试器-CORB
Chrome更新已经发生,现在我无法通过Chrome浏览器调试React本机网络请求,因为它们被CORB(而不是CORS)阻止 请求头Google chrome React本机调试器-CORB,google-chrome,react-native,cross-origin-read-blocking,Google Chrome,React Native,Cross Origin Read Blocking,Chrome更新已经发生,现在我无法通过Chrome浏览器调试React本机网络请求,因为它们被CORB(而不是CORS)阻止 请求头 Accept: application/json, text/plain, */* ... 响应头 Access-Control-Allow-Headers: authorization,x-goog-authuser Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE Access-Co
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
访问控制Allow-*头对CORB行为没有影响。Chrome阻止读取的原因是,该资源使用的是应用程序/json MIME类型,但您的前端试图以某种方式使用响应。浏览器不希望使用应用程序/json资源。使用
https://github.com/axios/axios
Inner React Native。但我正在使用Chrome调试网络连接,使用GLOBAL.XMLHttpRequest=GLOBAL.originalXMLHttpRequest | | GLOBAL.XMLHttpRequest
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