Sten Muchow Sten Muchow - 11 days ago 5
AngularJS Question

Angular - Clean URLs - Resource interpreted as stylesheet but transferred with MIME type text/html

When loading the application I get this error but my server is working the way it should... What could be the problem?

I am serving the app with clean urls aka no hashtag.

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

Answer

This is a problem I have come across multiple times and also seems others have since this is a recurring problem in Stackoverflow.

The solution is very simple.

 <base href="/">

However one caveat is that this handy little life saving tag needs to be right at the top of the right under the tag will solve it.

I wrote a post about it here

Comments