Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 255
Rodrigo Linkweb Avatar asked Aug 06 '17 05:08

Rodrigo Linkweb


People also ask

What is x-content-type-Options?

The X-Content-Type-Options response HTTP header is a marker used by the server to indicate that the MIME types advertised in the Content-Type headers should be followed and not be changed. The header allows you to avoid MIME type sniffing by saying that the MIME types are deliberately configured.

How to check x-content-type-Options header?

To check the X-Content-Type-Options in action go to Inspect Element -> Network check the request header for x-content-type-options like below.

What are the different mime types?

A MIME type consists of two parts: a type and a subtype. Currently, there are ten registered types: application, audio, example, font, image, message, model, multipart, text, and video.


1 Answers

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.

like image 101
platzhersh Avatar answered Sep 29 '22 13:09

platzhersh