Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 299200

Strict MIME type checking issue

$
0
0

In my custom module, I am adding a javascript file using libraries. Now when I visit the page, it gives me following error "Refused to execute script from 'http://dev.local.com/user/1' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled."
I thought this is related to my custom module but when I checked for other core modules which also adds the js file using library, they have the same error and it blocks the script from loading. If I uncheck the option aggregate css and js from the performance page, this error seems to go away.


Viewing all articles
Browse latest Browse all 299200

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>