-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error occurred: Failed to execute 'postMessage' on 'Worker': #<Memory> could not be cloned. #24
Comments
Do you have cross origin isolation header set? It is required for web workers, see #23 |
However, there is no cross-domain problem, and the loaded files are all in the same domain ctx.set("Cross-Origin-Embedder-Policy", "require-corp");
ctx.set("Cross-Origin-Opener-Policy", "same-origin"); I tried to add these response headers, but the error was the same |
I have the same issue, but only on production. The app works over |
With help from |
(Updated) I'm running into the same issue with
Run is with docker build . --tag wasm_thread_test
docker run --rm -p 5000:5000 wasm_thread_test http://localhost:5000/examples/simple.html works correctly (though with warnings about deprecated initialization parameters) but both of the wasm_pack examples don't work. Same error as OP, and COEP and COOP headers are correctly set. |
environment:
No cross domain, use self-signed HTTPS;
cargo.toml
src/lib.rs
build.ps1
The text was updated successfully, but these errors were encountered: