Resource interpreted as stylesheet but transferred with MIME type text/html (seems not related with web server)

Max picture Max · Mar 25, 2014 · Viewed 356.1k times · Source

I have this problem. Chrome continues to return this error

Resource interpreted as stylesheet but transferred with MIME type text/html

The files affected by this error are just the Style, chosen and jquery-gentleselect (other CSS files that are imported in the index in the same way work well and without error). I've already checked my MIME type and text/css is already on CSS.

Honestly I'd like to start by understanding the problem (a thing that seems I cannot do alone).

Answer

Sten Muchow picture Sten Muchow · Jan 8, 2016

Using Angular?

This is a very important caveat to remember.

The base tag needs to not only be in the head but in the right location.

I had my base tag in the wrong place in the head, it should come before any tags with url requests. Basically placing it as the second tag underneath the title solved it for me.

<base href="/">

I wrote a little post on it here