web-audio-samples icon indicating copy to clipboard operation
web-audio-samples copied to clipboard

SharedArrayBuffer example broken: no Cross-Origin Isolated

Open c84c opened this issue 2 years ago • 2 comments

SharedArrayBuffer sample is broken due to not Cross-Origin Isolated deploy.

All network requests do not contain following headers:

Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp

image

Of course, clicking Start button results in:

[ERROR] SharedArrayBuffer is not supported in your browser. See https://developers.google.com/web/updates/2018/06/audio-worklet-design-pattern for more info.

c84c avatar Nov 22 '21 23:11 c84c

Related: https://github.com/github/feedback/discussions/13309

hoch avatar Apr 26 '22 19:04 hoch

Workaround using ServiceWorker: https://github.com/gzuidhof/coi-serviceworker

hoch avatar Apr 26 '22 19:04 hoch

This issue is also fixed by https://github.com/GoogleChromeLabs/web-audio-samples/pull/293.

hoch avatar Apr 12 '23 17:04 hoch