首页 > 解决方案 > 具有 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 }

网络

标签: javascriptajaxes6-promise

解决方案


为临时客户端解决方案运行 chrome.exe --disable-web-security。


推荐阅读