I am facing a problem, SAB(SharedArrayBuffer) does not work in cross-domain environment. Target IFrame's source is on another domain, I added aliases to hosts file(Windows OS). I am sending SAB through postMessage to IFrame, but it simply does not either send or receive. If IFrame's source is something like this: "./frames/frame.html", SAB starts magically work. What can be done to make SAB work in cross-domain?
I am using Google Chrome, in Console window it does not show errors. When using Firefox, it provides this error: Cannot post message containing a shared memory object to a cross-origin window.
Website is hosted using webpack with headers:
Cross-Origin-Opener-Policy : same-origin
Cross-Origin-Embedder-Policy : require-corp