web页面 显示 Resource interpreted as Stylesheet but transferred with MIME type text/plain的错误警告
2017-07-21 16:28
936 查看
我的环境是搭在nginx上的,上面的错误大致如下:
大致意思是,js css 类型的文件 下载后 没有被引用, 为什么呢 提示也说了 是type问题
我期间查了一下 终于找到解决办法了
nginx配置的问题
在nginx.conf 配置文件中加入 下面两行 重启nginx 即可
include mime.types;
default_type application/octet-stream;
大致意思是,js css 类型的文件 下载后 没有被引用, 为什么呢 提示也说了 是type问题
我期间查了一下 终于找到解决办法了
nginx配置的问题
在nginx.conf 配置文件中加入 下面两行 重启nginx 即可
include mime.types;
default_type application/octet-stream;
相关文章推荐
- 建站记录2-CSS文件未加载-已解决-Resource interpreted as Stylesheet but transferred with MIME type text/plain
- Resource interpreted as Stylesheet but transferred with MIME type text/plain
- Resource interpreted as Stylesheet but transferred with MIME type text/plain
- Java过滤器引发的异常:Resource interpreted as Stylesheet but transferred with MIME type text/html
- 警告:Resource interpreted as Stylesheet but transferred with MIME type application/x-css
- odoo 错误 Resource interpreted as Stylesheet but transferred with MIME type application/x-css:
- Chrome 报 Resource interpreted as Script but transferred with MIME type text/plain 警告的解决办法
- Chrome 报 Resource interpreted as Script but transferred with MIME type text/plain 警告的解决办法
- Resource interpreted as Stylesheet but transferred with MIME type text/html:以及Uncaught SyntaxError:
- Chrome 报 Resource interpreted as Script but transferred with MIME type text/plain 警告的解决办法
- Resource interpreted as Image but transferred with MIME type text/plain 警告解决方案
- Resource interpreted as Script but transferred with MIME type text/plain:
- Resource interpreted as Stylesheet but transferred with MIME type application/octet-stream
- Resource interpreted as Stylesheet but transferred with MIME type application/x-css
- Resource interpreted as Script but transferred with MIME type text/plain
- CSS引入错误Resource interpreted as Stylesheet but transferred with MIME
- golange 错误如下 Resource interpreted as Script but transferred with MIME type text
- web——css和图片突然加载不了,console报错:Resource interpreted as script but transferred with MIME type text/html.
- Resource interpreted as Stylesheet but transferred with MIME type application/x-css
- 关于 Resource interpreted as Script but transferred with MIME type text/plain问题的处理