Every time I try to apply a specific style to a particular page on a website (even though the same style functions properly on other parts of the web server), an error message pops up. The error notification states
Refused to apply style from 'style.css' because its MIME type ('') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
I attempted running the file in a local environment while solely importing it into HTML, where it worked flawlessly. Similarly, testing it on a blank page within the same web server also yielded positive results.
To address any potential encoding concerns, I exchanged the file with a new one and removed all comments following advice from this source.
The CSS file consists of the following content:
#Main_ctl01_lst {
width: 320px;
}
#Main_ctl02_txt{
height: 25px;
width: 200px;
}
#Main_ctl03_txt {
width: 250px;
}
...
Additionally, here is the header code snippet for the webpage:
<head>
<script src="/Content/jquery-1.9.1.min.js" type="text/javascript"></script>
...
</head>
The expected outcome is to have a red background displayed if the script works correctly. Nonetheless, due to the MIME type issue, none of the file content loads as anticipated.