web-audio-samples
web-audio-samples copied to clipboard
SharedArrayBuffer example broken: no Cross-Origin Isolated
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
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.
Related: https://github.com/github/feedback/discussions/13309
Workaround using ServiceWorker: https://github.com/gzuidhof/coi-serviceworker
This issue is also fixed by https://github.com/GoogleChromeLabs/web-audio-samples/pull/293.