在Angular 5中调用js文件的MIME类型错误

时间:2018-02-11 21:07:33

标签: javascript angular ckeditor mime-types

我已将CKEditor javascript库添加到我的应用程序中。当调用ckeditor.js脚本时,我得到一个nosniff mime类型错误。 这是开发人员控制台中显示的错误: “未在'http://localhost:4200/ckeditor/ckeditor.js'处加载脚本,因为在给出'X-Content-Type:nosniff'时不允许使用非脚本MIME类型。” 我怎样才能克服这个错误?

0 个答案:

没有答案