Refused to apply style from '.../bootstrap.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.


在页面引入了bootstrap:

但是控制台报错如下:

 

 解决方案:

这个问题出现的场景是在node环境下使用express框架的静态资源访问,加上下面的代码即可:

 

 同时要保证这个要访问的静态资源在public目录下即可解决。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 浏览器报错 Refused to apply style from 'http://******' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. layer报错Refused to apply style from 'http://192.168.101.12:5502/skin/layer.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled的解决方法 spring security中前端访问Refused to execute script from 'http://localhost:8080/' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. Refused to execute script from '....js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.md 对于错误“Refused to execute script from '...' because its MIME type ('') is not executable, and strict MIME type checking is enabled.”的处理。 because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checkin HTML5 because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME c because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checkin 关于使用Django项目Google浏览器报错because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled. [WEB]对于"Refused to execute script from 'http://xx.xx.xx/yy/zz.js' because its MIME type ('') is not executable, and strict MIME type checking is enabled."问题的解决办法
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM