css - 拒绝应用样式,因为其 MIME 类型 ('application/json' 不受支持

标签 css spring spring-security

我想使用 fullcalendar 库,使用 gulp 和 yarn 这是生成的链接标签:

但我在控制台中收到此错误:

Refused to apply style from 'http://localhost/bower_components/fullcalendar/dist/fullcalendar.css' because its MIME type ('application/json') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

为什么会出现这个问题,我该如何解决?

最佳答案

在我的案例中,我发现我的 css 文件名有错别字。因此我试图导入一个不存在的文件。

关于css - 拒绝应用样式,因为其 MIME 类型 ('application/json' 不受支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49263433/

相关文章:

多个任意子项的 CSS 简写

java - 带有资源 application.xml 的 spring boot 失败

java - 上传图片,编码为base64 Spring MVC

java - Spring 安全登录404

java - 在 Spring 安全性中允许除一个之外的所有 URL

CSS: height- 填充 div 的其余部分?

javascript - 在d3中包装单词以获得一行中的一个单词

java - Cucumber - 与类型注册表配置文件共享上下文

spring - 使用 Spring 运行 JUnit 测试时为空服务

html - 如何通过中间在同一行上设置两个 block ?