今天angularjs的网站突然加载报错,提示Refused to execute script from 'https://cdnjs.com/' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled
后查看引用的//cdn.bootcss.com/require.js/2.1.11/require.min.js 无法打开。
解决方法:把所有 cdn.bootcss.com替换成cdnjs.cloudflare.com/ajax/libs
博客讲述了AngularJS网站加载报错问题,提示因MIME类型非可执行且严格检查而拒绝执行脚本,查看发现引用的require.min.js无法打开。解决办法是将所有cdn.bootcss.com替换成cdnjs.cloudflare.com/ajax/libs。
1万+

被折叠的 条评论
为什么被折叠?



