在我的Chrome中,我收到了以下警告:
Resource interpreted as stylesheet but transferred with MIME type text/plain. Resource interpreted as script but transferred with MIME type text/html. pngResource interpreted as image but transferred with MIME type text/plain.
我为什么要在乎?或者有一个浏览器不会像主浏览器那样处理资源的概率是多少?
解决方法
提供具有不正确的mime类型的文件可能会打开安全漏洞.
Here’s a high profile example.