Answers for "its mime type ('text/css') is not executable, and strict mime type checking is enabled."

0

was not loaded because its mime type, “text/html”, is not “text/css”. react

<!--Reason for the error is,

you are allowed to access only public directory when its served on browser, so

-> First ../src/css/ by this way you can't access the file , it will consider this as route and try to give you html

-> Second , This is not the proper way to include css files : -->

<link rel="stylesheet" type="text/css" href="../src/css/normalize.css" />
<link rel="stylesheet" type="text/css" href="../src/css/demo.css" />
<link rel="stylesheet" type="text/css" href="../src/css/component.css" />
Posted by: Guest on October-13-2021
0

MIME type ('text/html') is not executable

Odds are that the underlying reason for this is that you are trying to make an Ajax request, have hit a cross origin error and have tried to fix it by telling jQuery that you are using JSONP. This only works if the URL provides JSONP (which is a different subset of JavaScript), which this one doesn't.

The same URL with the additional query string parameter callback=the_name_of_your_callback_function does return JavaScript though.
Posted by: Guest on August-05-2021

Code answers related to "its mime type ('text/css') is not executable, and strict mime type checking is enabled."

Browse Popular Code Answers by Language