Answers for "because its mime type( text/html) is not supported"

5

Refused to apply style from 'http://localhost:9000/public/css/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

For me the solution was: instead, app.use(express.static(__dirname + '/public'));

I have used: app.use(express.static(__dirname));

now everything working correctly
Posted by: Guest on April-25-2021

Code answers related to "because its mime type( text/html) is not supported"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language