WebAssembly not executing/compiling due to incorrect response MIME type. Expected 'application/wasm'. #40029
Labels
arch-wasm
WebAssembly issues
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Creating a simple webserver and trying to implement WebAssembly.
Considering following folder structure:
├── lib.wasm
├── main.go
├── public
│ └── wasm_exec.js
├── README.md
└── templates
└── index.html
Replicated issue and made available in this public repo: https://github.com/bbloks/golang-wasm-issue-repl
OS: Ubuntu 18.04.3 LTS
What did you expect to see?
No error, webassembly just loading properly
What did you see instead?
FireFox: Mozilla Firefox 78.0.1, displays error in console:
TypeError: Response has unsupported MIME type
Chromium: 83.0.4103.61, displays error in console:
TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
The text was updated successfully, but these errors were encountered: