拒绝从...应用样式,因为它的MIME类型('text/html')不是受支持的样式表MIME类型,并且启用了严格的MIME检查 [英] Refused to apply style from... because its MIME type ('text/html') is not a supported style-sheet MIME type, and strict MIME checking is enabled
本文介绍了拒绝从...应用样式,因为它的MIME类型('text/html')不是受支持的样式表MIME类型,并且启用了严格的MIME检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此错误仅在Chrome中显示.我正在搜索此问题,但尚未找到任何
令人满意的解决方案.我附上了该错误的屏幕截图.请为此提出一些想法. 错误图片
This error shows only in chrome. I am searching this issue but not yet found any
satisfactory solution.I attached a screenshot of that error. Please suggest some idea for this. Error image
推荐答案
样式表的MIME类型应为text/css
.您的服务器在提供CSS文档时正在提供HTML文档(可能是404 NOT FOUND错误页面).
Stylesheets should have a MIME type of text/css
. Your server is serving up a HTML document (probably a 404 NOT FOUND error page) when it should be serving a CSS document.
这篇关于拒绝从...应用样式,因为它的MIME类型('text/html')不是受支持的样式表MIME类型,并且启用了严格的MIME检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文