twitter-bootstrap 由于 MIME 类型不匹配,函数被阻止(X-Content-Type-Options: nosniff)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45528748/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Function was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff)
提问by Rodrigo Linkweb
I'm using Quick.gallery (http://quick.gallery) script on my website but I'm getting some erros with Firebug:
我在我的网站上使用 Quick.gallery ( http://quick.gallery) 脚本,但我在使用 Firebug 时遇到了一些错误:
When I try to access http://www.portaloficial.com.br/fotos.php, Firebug show me some erros like "js=js_viewer was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff)."
当我尝试访问http://www.portaloficial.com.br/fotos.php 时,Firebug 向我显示了一些错误,例如“js=js_viewer 由于 MIME 类型不匹配而被阻止(X-Content-Type-Options:nosniff)。 ”
Can anybody help me on this?
有人可以帮我吗?
回答by platzhersh
I had this issue before, when I was referencing a mistyped URL, so the reason for content-type html was, that I actually got a HTTP 404 error page.
我之前遇到过这个问题,当我引用错误输入的 URL 时,内容类型 html 的原因是,我实际上得到了一个 HTTP 404 错误页面。

