共享arraybuffer,github页面和DNS

发布于 2025-02-07 02:42:31 字数 1454 浏览 3 评论 0原文

Buon Giorno,以下情况是:

您可以检查的sharedArrayBuffer,网站 https://ossia.io/score/score-web 返回错误:

ReferenceError: SharedArrayBuffer is not defined

从Chrome检查员所说的内容中,

SharedArrayBuffers (SABs) can be used to construct high-resolution timers. High-resolution timers simplify Spectre attacks on cross-origin resources.

To mitigate security risks across browsers, SharedArrayBuffers are gated behind cross-origin isolated contexts starting with Chrome 92 (July 2021). 

To continue using SharedArrayBuffers, please ensure that this page opts-into cross-origin isolation by setting Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy appropriately.

Note that for each iframe, only the first issue is reported for performance reasons.

这是一个问题。

我该如何解决此问题:

  • 必须更改URL
  • 必须离开GH页面

Buon giorno, here is the situation:

As you can check, the website https://ossia.io/score-web returns an error:

ReferenceError: SharedArrayBuffer is not defined

Which from what the inspector of chrome says:

SharedArrayBuffers (SABs) can be used to construct high-resolution timers. High-resolution timers simplify Spectre attacks on cross-origin resources.

To mitigate security risks across browsers, SharedArrayBuffers are gated behind cross-origin isolated contexts starting with Chrome 92 (July 2021). 

To continue using SharedArrayBuffers, please ensure that this page opts-into cross-origin isolation by setting Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy appropriately.

Note that for each iframe, only the first issue is reported for performance reasons.

is a CORS issue.

How can I fix this without:

  • Having to change the URL
  • Having to move off GH pages

?

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

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

发布评论

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

评论(1

夏末染殇 2025-02-14 02:42:31

我设法使用以下库进行修复,该库显然可以重新加载页面并注入缺失的CORS标题:

https:/ /Github.com/gzuidhof/coi-serviceworker

我刚刚添加

<script src="coi-serviceworker.min.js"></script>

到github页面网站和旁边的JS脚本的index.html中,它起作用了。

I managed to fix it with the following library which apparently reloads the page and injects the missing CORS headers:

https://github.com/gzuidhof/coi-serviceworker

I just added

<script src="coi-serviceworker.min.js"></script>

to the index.html served by the Github Pages website and the JS script next to it and it worked.

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