Should You Enable COOP/COEP for SharedArrayBuffer in Firefox? A Decision Guide
SharedArrayBuffer in Firefox requires cross-origin isolation. Decide whether COOP/COEP headers are worth the compatibility cost, or fall back to postMessage.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
SharedArrayBuffer in Firefox requires cross-origin isolation. Decide whether COOP/COEP headers are worth the compatibility cost, or fall back to postMessage.
Context A WebAssembly module compiled with -pthread (Emscripten) or the WebAssembly Threads proposal loads and runs on http://localhost without explicit response headers. In production, the same binary fails at instantiation with OperationError or "SharedArrayBuffer not available" because the browser requires Cross-Origin-Opener-Policy: same-origin and Cross
Goal: determine whether omitting Cross-Origin-Opener-Policy or Cross-Origin-Embedder-Policy reliably blocks WebAssembly shared memory and threads, and what failure surface appears when only one header is set. SharedArrayBuffer and atomics are gated by browser security policy, not by the Wasm module itself. The page’s crossOriginIsolated property should be fa