Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google chrome React本机调试器-CORB_Google Chrome_React Native_Cross Origin Read Blocking - Fatal编程技术网

Google chrome React本机调试器-CORB

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

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-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