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.
↧
Strict MIME type checking issue
↧