最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Function was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff) - Stack Overflow

programmeradmin3浏览0评论

I'm using Quick.gallery () script on my website but I'm getting some erros with Firebug:

When I try to access .php, Firebug show me some erros like "js=js_viewer was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff)."

Can anybody help me on this?

I'm using Quick.gallery (http://quick.gallery) script on my website but I'm getting some erros with 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)."

Can anybody help me on this?

Share Improve this question asked Aug 6, 2017 at 5:11 Rodrigo LinkwebRodrigo Linkweb 1011 gold badge1 silver badge11 bronze badges 2
  • 2 the server for some of the scripts (e,g src="fotos/?js=linkify") is sending Content-Type text/html; charset=UTF-8 - scripts aren't text/html - they should be text/javascript; charset=UTF-8 - not sure why your server is doing that – Jaromanda X Commented Aug 6, 2017 at 5:23
  • 1 Read the article developer.mozilla.org/en-US/docs/Web/HTTP/Headers/… – Ataur Rahman Munna Commented Aug 6, 2017 at 5:23
Add a comment  | 

1 Answer 1

Reset to default 21

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.

发布评论

评论列表(0)

  1. 暂无评论