[英]MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)
Is there a way to overcome the problem listed below?有没有办法克服下面列出的问题? I have checked the path of the JavaScript.
我检查了 JavaScript 的路径。
The resource from “https://unpkg.com/browse/wolfram-notebook-embedder@0.2.2/dist/wolfram-notebook-embedder.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
由于 MIME 类型(“text/html”)不匹配,来自“https://unpkg.com/browse/wolfram-notebook-embedder@0.2.2/dist/wolfram-notebook-embedder.min.js”的资源被阻止(X-Content-Type-Options:nosniff)。
Loading failed for the
<script>
with source “https://unpkg.com/browse/wolfram-notebook-embedder@0.2.2/dist/wolfram-notebook-embedder.min.js”.<script>
加载失败,源为“https://unpkg.com/browse/wolfram-notebook-embedder@0.2.2/dist/wolfram-notebook-embedder.min.js”。
<script src="https://unpkg.com/browse/wolfram-notebook-embedder@0.2.2/dist/wolfram-notebook-embedder.min.js" type="text/javascript"> </script>
I have checked the path of the javascript
我检查了 javascript 的路径
Then you would have seen that the URL you are using is to an HTML document displaying a nicely formatted rendering of the JavaScript.然后您会看到您正在使用的 URL 是 HTML 文档,该文档显示了格式良好的 JavaScript 渲染。
You need to load actual JavaScript (without browse/
in the URL).您需要加载实际的 JavaScript(在 URL 中没有
browse/
)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.