Strapi不支持协议问题

发布于 2025-01-27 21:45:05 字数 566 浏览 1 评论 0 原文

strapi应用程序。

我在每个内容类型的打开管理面板内容管理器上都遇到了这个问题

不支持的协议/content-manager/content-types/api:“

请告诉我,我需要正确地恢复

此错误

拒绝执行内联脚本,因为它违反了以下内容安全策略指令:“ script-src'self'”。 “不安全限制”关键字,hash('SHA256-RWMOIOEVICH7/CJY5SKREID3OOI5HTRIT357K22 HUDQ ='),或者需要nonce('nonce-…')才能启用内联执行。

p> p> p>

Strapi Application.

I am getting this issue on opening admin panel content manager for every content type

Unsupported protocol /content-manager/content-types/api:"

Please tell me where is that coming from I need to make it correct

Also getting this error

Refused to execute inline script because it violates the following Content Security Policy directive: “script-src ‘self’”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-rwMOiOeVICH7/Cjy5SkreID3OOi5HTrit357k22hUDQ=’), or a nonce (‘nonce-…’) is required to enable inline execution.

screenshot

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黯然#的苍凉 2025-02-03 21:45:05

我也有类似的错误,这对我有帮助:

在文件config/middleware.js中,我添加了

          "script-src": [
            "'self'",
            "DOMAIN-NAME-WHERE-SCRIPT-LOCATED.herokuapp.com",
          ],

”在此处输入映像说明“

”在此处输入图像说明”

I had similar error, this helped me:

In file config/middleware.js I added

          "script-src": [
            "'self'",
            "DOMAIN-NAME-WHERE-SCRIPT-LOCATED.herokuapp.com",
          ],

enter image description here

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文