HTML: Markup language
CSS: Styling language
JavaScript: Scripting language
Web APIs: Programming interfaces
All web technology
Learn web development
Discover our tools
Get to know MDN better
此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
View in English Always switch to English
原因:CORS disabled
发送了一个需要使用 CORS 的请求,但在用户的浏览器中禁用了 CORS。发生这种情况时,用户需要在浏览器中重新打开 CORS。
在 Firefox 中,禁用 CORS 的首选项是 content.cors.disable。将此设置为 true 将禁用 CORS,因此在这种情况下,CORS 请求将始终因此错误而失败。
content.cors.disable
true