Voice Messages Add-On – Incorrect response MIME type. Expected ‘application/wasm’
When you are installing Voice Messages Add-on it works out of the box on most of servers, but in some cases server is not configured properly and you can see following error when trying to record new voice message:
Error: TypeError: Failed to execute ‘compile’ on ‘WebAssembly’: Incorrect response MIME type. Expected ‘application/wasm’.
There is 2 ways to fix the issue:
- Ask your host (or do it yourself if you know how to) to tune your server config to serve this file with content-type: application/wasm
- Add this string to your website wp-config.php file:
After applying one of this fixes, you will be able to record the voice message with no problems.