简体   繁体   English

MIME 类型(“text/html”)不匹配(X-Content-Type-Options: nosniff)

[英]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 error message错误信息

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”。

Relevant Code相关代码

<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.

相关问题 错误:由于 MIME 类型(“text/html”)不匹配而被阻止(X-Content-Type-Options: nosniff) - Error: Blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff) 由于 MIME 类型 (“text/html”) 不匹配 (X-Content-Type-Options: &gt; nosniff),资源被阻止 - The resource was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: > nosniff) HUGO:由于 MIME 类型(“text/html”)不匹配而被阻止(X-Content-Type-Options: nosniff) - HUGO: was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff) 由于 MIME 类型(“text/html”)不匹配(X-Content-Type-Options: nosniff)而被阻止 - was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff) 来自 Firefox 的错误:MIME 类型(“text/plain”)不匹配(X-Content-Type-Options:nosniff) - Error from Firefox: MIME type (“text/plain”) mismatch (X-Content-Type-Options: nosniff) 由于MIME类型不匹配,功能被阻止(X-Content-Type-Options:nosniff) - Function was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff) 由于 MIME 类型不匹配而被阻止的资源(X-Content-Type-Options: nosniff) - Resource blocked due to MIME type mismatch (X-Content-Type-Options: nosniff) 由于 MIME 类型 (“text/html”) 不匹配 (X-Content-Type-Options: nosniff),来自“http://localhost:3000/script.js”的资源被阻止 - The resource from “http://localhost:3000/script.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff) VANILLA.JS客户端路由器 + Webpack-&gt;&gt; ressource blocked(由于Mime Type(“ text/html”)不匹配(x-content-type-type-type-options:nosniff:nosniff)) - Vanilla.js Client Side Router + Webpack --> Ressource blocked (due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)) 在页面刷新时我得到这个:“/assets/css/bootstrap.min.css”由于 MIME 类型(“text/html”)不匹配(X-Content-Type-Options:nosniff)而被阻止 - On Page Refresh I get this: “/assets/css/bootstrap.min.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM