'Unity - WebGL build works fine into the localhost but not into the webserver
I wanted to create a WebGL game with Unity. So i created my version of the game, i built it and works just fine in the localhost that unity launches after the build, but when i upload it in my web server, the game and the debug tool of chrome give me the following errors:


Solution 1:[1]
build > preferences > publish settings
Check your decompression settings. Sites like itch.io don't support Brotli compression, so you'll have to set it to fallback. If that doesn't work, try disabling the decompressions settings.
Solution 2:[2]
What helped me was changing compression format to Gzip and enabling Decompression fallback. webgl publishing setting picture
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mike |
| Solution 2 | Kacper G?sior |
