Anyone managed to get go wasm running? I always receive the following error: WebAssembly.instantiate

Anyone managed to get go wasm running?
I always receive the following error:
WebAssembly.instantiate(): Wasm code generation disallowed by embedder

    await import('wasm_exec.js')
    const go = new Go();
    
    const resp = await fetch(WASM_URL)
    const bytes = await resp.arrayBuffer()
    const res = await WebAssembly.instantiate(bytes, go.importObject)
    const result = res.exports.NewFromJson(request.body)
Was this page helpful?