关于 IIS 中 iconfont.woff 报 404(Not Found) 的原因即解决方法

在使用layui过程中,控制台报错:

layui/font/iconfont.woff?v=240 net::ERR_ABORTED 404 (Not Found)

原因是  IIS 中未添加相应MIME类型,只需在 IIS 主页双击进入【MIME类型】,并添加相应扩展名及MIME类型对应关系即可。

另外还有其它相关对应关系如下:

.svg         image/svg+xml
.woff2      application/x-font-woff

 【参考】https://zhidao.baidu.com/question/1544087349971509827.html

原文地址:https://www.cnblogs.com/xunzhiyou/p/10796313.html