The Console Of Chrome Error : Refused To Apply Style Because Its Mime Type ('text/html')
I have an error when i run it on node server.js. The error reads: Refused to apply style from 'http://localhost:3000/style.css' because its MIME type ('text/html') is not a suppor
Solution 1:
create a public folder and in server.js make entry
app.use(express.static(path.join(__dirname, 'public')));
put your css file inside that public folder. serve all the style-sheets or static assets from that folder only.
Post a Comment for "The Console Of Chrome Error : Refused To Apply Style Because Its Mime Type ('text/html')"