cross-origin-read-blocking - 修复跨域读取阻塞 (CORB) 阻止的跨域响应警告
问题描述
从今天开始我一直有这个问题,直到昨晚这才成为问题,我能够点击 API 并让网络应用程序正常工作,该应用程序是使用 React-JS 构建的,最初我们有CORS 问题和 CORS 插件已安装并启用以使其正常工作。现在CORB的问题已经出现了,经过修复,它们都没有奏效。我们所有的 API 都以这种方式调用:
fetch('API_URL', {
headers: {
'Accept': 'application/json, text/plain, application/xml, */*',
'Content-Type': 'application/json',
'Access-Control-Allow-Headers': 'Content-Type',
},
method: 'POST',
body: JSON.stringify(req)
})
解决方案
This has been resolved , I just ran this : chrome.exe --disable-web-security , this is on windows , The CORB issue is resolved.
推荐阅读
- 3d - 在 vulkan 中渲染 3d 汽车模型,但纹理在旋转时闪烁
- spring - Spring to Oracle UTF-8 字符截断
- java - Maven忽略本地存储库位置更改
- regex - 正则表达式替换单词前最多 4 位数字
- postgresql - 如何在案例表达式中添加实际列名作为别名
- javascript - 悬停在子元素上时未触发 Bootstrap 5 工具提示
- gradle - 使用 Gradle 获取依赖项列表(不是树)
- javascript - 函数不会递归
- python - 在python中更改数组的数据类型
- python - ModuleNotFoundError:没有名为“librosa”的模块