Resource interpreted as Font but transferred with MIME type application/x-font-woff
在项目前端中使用了Bootstrap
的Glyphicons字体图标,本地Spring开发时
没有出现任何问题,后来部署到阿里云上的tomcat中后,账号登陆时突然自动把字体文件下载了下来,而且登录后的自动跳转也没用了!更囧的是当时我正在
给客户演示,坑啊。。。。
演示结束后Chrome F12
看了一下问题,出现了这么一个错误提示:
Resource interpreted as Document but transferred with MIME type application/x-font-ttf: "http://ip/fonts/glyphicons-halflings-regular.ttf".
看样子应该是xxx.ttf
这个文件的MIME
类型有问题。网上回答都是IIS
、