javascript - 具有 MIME 类型 application/json 的跨域读取阻塞 (CORB)
问题描述
我知道很多人也有这个问题。但是,似乎人们正在混合使用 CORB 和 CORS。我之前安装了 CORS 扩展,但它似乎不适用于 CORB。
我在前端使用聚合物
return {
"Content-type": "text/json",
Accept: {
json: "application/json",
text: "text/plain",
html: "text/html",
xml: "application/xml",
arraybuffer: 'application/octet-stream',
},
Authorization: "JWT " + this.authToken
}
解决方案
为临时客户端解决方案运行 chrome.exe --disable-web-security。
推荐阅读
- sql - sql配置池中的min和max属性是什么意思?
- react-native - 我可以使用在 react-native 中使用外部库的外部库吗
- reactjs - React Hooks - 如何从查询字符串中获取参数值
- key-bindings - 切换到 tmux 中的最后一个活动会话
- r - R 版本 3.6.3 (2020-02-29) | 使用包 dplyr_1.0.0 | 无法执行 summarise() 函数
- android - 我正在使用来自 react native 的模型,但在底部显示灰色背景空间
- docker - docker 上没有名为“wsgi”的模块
- proxy - Fiddler not capturing some connections
- javascript - Serviceworker 永远不会被激活或接收消息,但工作箱功能适用于子路径
- javascript - SAPUI5 引用另一个片段中的一个ID