![](/img/trans.png)
[英]Angular 6 : Refused to execute script from 'URL' because its MIME type( ) is not executable, & strict MIME type checking is enabled
[英]GeoJSON file: Refused to execute script from because its MIME type ('') is not executable, and strict MIME type checking is enabled
GeoJSON 不是脚本; 它是数据,类型text/javascript
是 GeoJSON 文件的错误 MIME 类型。 如果您从其他 JavaScript 代码加载 GeoJSON,您应该以另一种方式加载,而不是在 HTML 中使用<script>
标签,也许通过 XMLHttpRequest。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.