When I try to change the linked reference of a local JavaScript file to a GitHub raw version my test file stops working.(当我尝试将本地JavaScript文件的链接引用更改为GitHub原始版本时,我的测试文件停止工作。)
The error is:(错误是:)
Refused to execute script from ... because its MIME type ( text/plain
) is not executable, and strict MIME type checking is enabled.(拒绝从...执行脚本,因为它的MIME类型( text/plain
)不可执行,并且启用了严格的MIME类型检查。)
Is there a way to disable this behavior or is there a service that allows linking to GitHub raw files?(有没有办法禁用此行为或是否有允许链接到GitHub原始文件的服务?)
Working code:(工作代码:)
<script src="bootstrap-wysiwyg.js"></script>
Non-working code:(非工作代码:)
<script src="https://raw.github.com/mindmup/bootstrap-wysiwyg/master/bootstrap-wysiwyg.js"></script>
ask by AuthorProxy translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…