Unity 发布WEBGL运行后报错,Brotli compression may not be supported over HTTP connections.

报错文本

Unable to parse Build/WEBGL.framework.js.br!
If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported over HTTP connections. Migrate your server to use HTTPS.

Unity 发布WEBGL运行后报错,Brotli compression may not be supported over HTTP connections._第1张图片

原因:

Brotli 在http上不支持压缩,改成G-zip或不压缩

解决办法:

在ProjectSetting中修改压缩设置

Unity 发布WEBGL运行后报错,Brotli compression may not be supported over HTTP connections._第2张图片

你可能感兴趣的:(webgl)