This error shows only in chrome. I am searching this issue but not yet found any
satisfactory solution.I attached a screenshot of that error. Please suggest some idea for this. Error image
Stylesheets should have a MIME type of text/css
. Your server is serving up a HTML document (probably a 404 NOT FOUND error page) when it should be serving a CSS document.
Solution:
In my case, the problem was an empty @GetMapping
in one of my Controllers. I deleted it and the problem was gone.
I think the same answer will help someone who's having this similar problem and context ; e.g. JSP.
Background:
I had the same problem using Spring Boot and FreeMaker.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With