I am using jquery-1.7.2.min.js as my jQuery library. This is a file that I have saved in my Style Library and I am referencing it in my master page.
For some users it is failing and the error they are getting is the following:
Refused to execute script from '..../jquery-1.7.2.min.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
The strange thing is that it was working for them before, but just a couple of days ago it stopped working. And for them it is not working on all the browsers.
The way that I had declared it in master page was like this:
type="text/javascript" src="/Style Library/jquery-1.7.2.min.js"> Then I changed it to :
type="application/javascript" src="/Style Library/jquery-1.7.2.min.js"> and now it is:
type="application/x-javascript" src="/Style Library/jquery-1.7.2.min.js"> but to no avail.
I read that 'Setting the MIME type properly on the server' fixed someone's issue. If so then how do we set the MIME type properly on the server?
Much Obliged