Refused to apply style from 'http://localhost:8081/src/content/loginBackground/css/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled
这是什么原因?该如何解决?
Refused to apply style from 'http://localhost:8081/src/content/loginBackground/css/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled
这是什么原因?该如何解决?
后端配置 url 为 /src/content/loginBackground/css/style.css的接口,返回 style.css文件,因为后端返回的html文件引用了该域名下得css文件,作为独立资源加载
9 回答1.8k 阅读✓ 已解决
6 回答1.8k 阅读
3 回答1.5k 阅读✓ 已解决
4 回答1.4k 阅读✓ 已解决
3 回答1.3k 阅读
2 回答1.3k 阅读✓ 已解决
3 回答1.5k 阅读✓ 已解决
楼主先确认下,
'http://localhost:8081/src/content/loginBackground/css/style.css'
这个文件是否可以直接在浏览器里浏览,我认为应该是这个文件没有找到吧,文件访问路径的问题。