Answer the question
In order to leave comments, you need to log in
Doesn't include .css, Mime type error?
Error - Refused to apply style from ' localhost:3000/css/index.css ' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
File structure:
-html
--main.html//link rel="stylesheet" type="text/css" href="../css/main.css"
-css
--main.css
Answer the question
In order to leave comments, you need to log in
I did it, on the advice of a friend, I simply transferred .html to one directory above, and registered the path /css/main.css and it all worked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question