I have a client who needs to run their web browsers through proxies, and our game is deployed through WebGL. When run through a proxy, Unity WebGL throws errors, on Chrome, Firefox and Internet Explorer.
On Chrome, it says “An error occurred running the Unity content on this page. See your browser’s JavaScript console for more info. The error was: Uncaught unknown compression method.”
On Firefox: “You need a browser which supports WebGL to run this content. Try installing Firefox.”
On IE: “Please note that your browser is not currently supported for this Unity WebGL content. Try installing Firefox, or press Ok if you wish to continue anyway.”
The game runs perfectly when the browsers are NOT configured for a proxy.
Any ideas?
Attaching a screenshot of the errors.
Hello mattbrand.
There might be something wrong with the proxy processing the request headers (most probably Accept-encoding: gzip does not get propagated). To check on that, try to temporary remove the /Release/.htaccess file from the server and open the game through the proxy.
OK thank you so much! I’m having the client test it, and I will let you know.
Hi again @alexsuvorov . I had the client try it without .htaccess through the proxy, and it still gave the same error popups. Any other ideas?
First try to make sure the .htaccess has been removed. As of today I can clearly see from the server response headers on the resource above that .htaccess is still working. After it is removed you can check on other issues, in any case this is not related to WebGL, as it is the server/proxy configuration issue.