Skip to content
Advertisement

Tag: rust

Hanging promise canceled

I’m trying to set Cloudflare’s workers to track the circulation of some ERC20 tokens as an exercise to learn web3 and wasm. Thought it could be simple enough, but about 90% of the time so far has been trying to solve this elusive error I look for additional information online, but it seems my error is from a different type(?).

Loading module was blocked because of a disallowed MIME type (“application/wasm”)

I serve a static file server (through HTTP), which contains data generated by wasm-pack. Using the examples from the rustwasm book, I added this code to my index HTML page: However, on Firefox, I get the error message as indicated in the title: module from “http://localhost:8000/pkg/fstree_web_bg.wasm” was blocked because of a disallowed MIME type (“application/wasm”). I suspected HTTPS issues or

Advertisement