Webassembly Support. MIME type Expected 'application/wasm'
danec020 opened this issue · comments
When using webassembly and calling the WebAssembly.instantiateStreaming function, there is an error saying the incorrect MIME type. Is there a way for us to add MIME types to Live Server? Otherwise I need to use a less performant way of initializing the wasm module which I would like to avoid.
I came here for exactly this, the MIME type that the server is setting for Web Assembly files is application/octet-stream
and at least Chrome is complaining with:
Uncaught (in promise) TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
So either fix the correct MIME type for wasm
files or as @danec020 suggests, let us specify specific Content-Type
headers based on file extensions through configuration.
Edit: Just realized this project is unmaintained, so I'll be probably just be using caddy for the time being.