springboot 整合thymeleaf, html页面引入js, 在火狐浏览器运行时报错,
琢磨了好久,发现是引用js时type写错了,
这个type 要改为:
<script type="javascript" src="/static/js/jquery-1.8.3.js"></script>
更多推荐
xxx的资源已被阻止,因为 MIME 类型(“text/html”)不匹配(X-Content-Type-Options: nosniff)
springboot 整合thymeleaf, html页面引入js, 在火狐浏览器运行时报错,
琢磨了好久,发现是引用js时type写错了,
这个type 要改为:
<script type="javascript" src="/static/js/jquery-1.8.3.js"></script>
更多推荐
xxx的资源已被阻止,因为 MIME 类型(“text/html”)不匹配(X-Content-Type-Options: nosniff)
发布评论