我的环境是搭在nginx上的,上面的错误大致如下:

 

web页面 显示 Resource interpreted as Stylesheet but transferred with MIME type text/plain的错误警告

 

大致意思是,js css 类型的文件 下载后 没有被引用, 为什么呢   提示也说了  是type问题

 

我期间查了一下  终于找到解决办法了

 

nginx配置的问题

 

 

在nginx.conf 配置文件中加入 下面两行 重启nginx  即可

         include       mime.types;
         default_type  application/octet-stream;

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2021-05-03
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
猜你喜欢
  • 2021-05-28
  • 2021-10-17
  • 2021-10-27
  • 2021-09-20
  • 2022-12-23
相关资源
相似解决方案