Answers for "supported stylesheet mime type, and strict mime checking is enabled"

6

refused to apply style from '<url>' 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 "supported stylesheet mime type, and strict mime checking is enabled"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language