I am working on React + WASM + FFmpeg app following this tutorial
On Chrome, I got the error Uncaught (in promise) ReferenceError: SharedArrayBuffer is not defined error.
I followed the doc reference, and it says the below, which I don't understand.
Cross-origin isolation overview
You can make a page cross-origin isolated by serving the page with these headers:
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
What does serving the pages with these headers
mean?
How do I implement that?
I even found Chrome dev's official video, but even that does not explain any implementation detail.
Edit2: The best instruction I can find is here, but even that is too vague for me. What does it mean by setting a header? I'm not requesting anything to begin with.
Edit: My React version is already 17.0.2, so this should have been fixed but I am somehow getting this error as well...
[Deprecation] SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021.