Score:0

modernizr.min.js?v=3.3.1 was blocked due to the MIME type ("text/html") not matching (X-Content-Type-Options: nosniff) - how to fix it?

cn flag

I developed a site using drupal 7. Now I migrated the site to another webserver.

The server is getting an error that I can not solve.

In the file 'core.libraries' I have the following code:

'modernizr:

Block the page from being loaded until Modernizr is initialized.

header: true remote: https://github.com/Modernizr/Modernizr license: name: MIT url: http://modernizr.com/license/ gpl-compatible: true version: "v3.3.1" js: ../assets/vendor/modernizr/modernizr.min.js: { preprocess: 0, weight: -21, minified: true }'

The resource “****/core/assets/vendor/modernizr/modernizr.min.js?v=3.3.1” was blocked due to the MIME type ("text/html") not matching (X-Content-Type-Options: nosniff).

How can I fix this problem?

Thanks in advance.

id flag
It seems like the file doesn’t exist or there is some other problem. Drupal or the web server are returning an HTML page with the error.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.