CompileError: WebAssembly.instantiate(): Wasm code generation disallowed by embedder

Hey folks,

I'm trying to run a wasm file compiled by emscripten on CF workers. It's working fine locally, but when I try it in production I get:

failed to asynchronously prepare wasm: CompileError: WebAssembly.instantiate(): Wasm code generation disallowed by embedder


This page seems to indicate that WebAssembly.instantiate should work, am I missing something?

https://developers.cloudflare.com/workers/runtime-apis/webassembly/
Execute code written in a language other than JavaScript or write an entire Cloudflare Worker in Rust.
Was this page helpful?