p5.js-web-editor
p5.js-web-editor copied to clipboard
Cannot create a SharedArrayBuffer
Details about the bug:
- Web browser and version: Edge 108.0.1462.54
- Operating System: Windows
- Steps to reproduce this: https://editor.p5js.org/pflannery/sketches/RwHhvso2I
When trying to create a SharedArrayBuffer an error message is displayed
SharedArrayBuffer is not defined
In order to enable SharedArrayBuffer the server needs the following headers:
- Cross-Origin-Opener-Policy with "same-origin" (protects your origin from attackers)
- Cross-Origin-Embedder-Policy with "require-corp" (protects victims from your origin)
Also see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer#security_requirements