HTML code:
I have tried everything to link style.css
to products.ftlh
( ftlh is apace freemarker )
I can’t solve this problem. I need help. I notice this error in the developer page:
Refused to apply style from 'http://localhost:8080/login' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
I’ve tried to change the link
tag.
2
Answers
Shouldn’t you specify the path to the file starting from the resources folder? "static/css/style.css"
try setting the Link as a th:href like this:
th:href looks in the static folder by default so just specify the css folder