HTTP Response Header "Content-Type" configured incorrectly on the server for file Build/Game.wasm

I uploaded my webgl build (2022.1.7f1) to my hosting server which runs on nginx (I believe this is the culprit) and I have also had the server config set according to Unity - Manual: Server configuration code samples and yet I am still getting “HTTP Response Header “Content-Type” configured incorrectly on the server for file Build/Game.wasm , should be “application/wasm”. Startup time performance will suffer.” error.

I have tried every solution including .htaccess one, none of it has worked. Can somebody please help me out.

Thanks and regards.

I am looking for the solution as well tried htaccess file in the Build folder didn’t worked

here is another thread with lots of help, on this exact topic hopefully it can help you.