Hello. I'm deploying my project using Cloudflare P...
# webassembly
t
Hello. I'm deploying my project using Cloudflare Pages, directly from a GitHub repository, and I'm having issues with the
.wasm
file being served with the wrong
Content-Type
.
661.js:1 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
This only happens when following the generated link for the preview deployment. Has anyone ever had this problem ? If i use the alias, it works without any issues. Adding a _headers file doesn't seem to resolve anything. If i set the root folder directly to my app folder, it works but then the link will go directly to my app and not my homepage. I would like to know if it's Cloudflare related or just a misconfiguration on my part.
j
This sounds like a cloudflare issue because cloudflare should determine the MIME type based on the file extension but it isn't. This error seems like it would happen with .wasm files in any other language than Kotlin as well
t
What's odd is that using the same link today (that worked yesterday) i get the same error...