Set cross-origin security headers to work with SharedArrayBuffers in FF 79
Firefox 79 recently released with support for SharedArrayBuffers, but you need to set certain headers in order to use them (docs). I'm not sure exactly how webassembly.sh is hosted, but I assume this wouldn't be too hard to implement?
And it would fix #79
In firefox, yeah.
Just tested it on an instance I host myself, and on nginx it really is as easy as
location / {
add_header Cross-Origin-Opener-Policy same-origin;
add_header Cross-Origin-Embedder-Policy require-corp;
# whatever you had here before
}
It even works perfectly in Chrome, I no longer have the annoying issue of having to use the prompt for stdin.
@syrusakbary would you or someone else be able to look into this?
It even works perfectly in Chrome, I no longer have the annoying issue of having to use the prompt for stdin.
Hit that issue as well in Chrome 93 running the following on webassembly.sh but sounds like it will effect most packages using std io.