3 ms·
Did a quick test and seems to work as expected: https://codesandbox.io/p/devbox/sharedarraybuffer-33qywc https://codesandbox.io/p/devbox/sharedarraybuffer-33qyw
by kaoD 3y ago
Did a quick test and seems to work as expected: https://codesandbox.io/p/devbox/sharedarraybuffer-33qywc https://codesandbox.io/p/devbox/sharedarraybuffer-33qywc (see console in https://33qywc-3000.csb.app/ https://33qywc-3000.csb.app/)
Caveat is you need these headers for security reasons (hence why the sandbox above has Express) or SharedArrayBuffer is not even defined (at least in Firefox):
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp