. Advertisement .
..3..
. Advertisement .
..4..
I get the “resource interpreted as stylesheet but transferred with mime type text/html” issue when trying to work with Chrome. Here is the detail of the error I got the error message:
Resource interpreted as stylesheet but transferred with MIME type text/html
Please give me some advice to solve this problem.
The cause: If you request your stylesheet, your server will the browser that it is an HTML document (Content-Type: text/html) instead of a stylesheet (Content-Type: text/css).
I’ve already checked my myme.type and text/css is already on css.
But there is something else about your server makes that stylesheet has the wrong content type.
Solution: You need to use the Net tab of your browser’s developer tools to consider the request and the response.
Using Angular
This is an important point to keep in mind.
The base tag must be located in the correct place, not just in the head.
My base tag was in the wrong spot in my head. It should be placed before any tags that have url requests. It was solved by placing it under the title.
I wrote a short post about it