我正在使用JavaScript和HTML开发一个网页,一切正常 很好,当我从我的HTML页面收到这个错误列表时:由于MIME类型不匹配导致资源被阻塞(X-Content-Type-Options:nosniff)
The resource from “https://raw.githubusercontent.com/dataarts/dat.gui/master/build/dat.gui.min.js”
was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff).
The resource from “https://raw.githubusercontent.com/mrdoob/three.js/dev/build/three.js” was
blocked due to MIME type mismatch (X-Content-Type-Options: nosniff).
The resource from “https://raw.githubusercontent.com/mrdoob/three.js/master/examples/js/renderers/CanvasRenderer.js”
was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff).
The resource from “https://raw.githubusercontent.com/mrdoob/three.js/master/examples/js/renderers/Projector.js”
was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff).
The resource from “https://raw.githubusercontent.com/mrdoob/three.js/dev/build/three.js” was
blocked due to MIME type mismatch (X-Content-Type-Options: nosniff).
这些错误的自动更新的浏览器(Mozilla Firefox浏览器)之后出现,可以 的东西已经在建立改变。你知道任何方式来解决这个 问题吗?
不要从GitHub加载文件。相反,使用CDN。 – SLaks