Skip to content
Advertisement

Tag: wasm-pack

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