"createUnityInstance is not defined" with a cube and default Template in Unity 2021?

Hello,
I’ve just upgraded from Unity 2019 to Unity 2021.
Before to check the new Webgl features I’ve created a cube, and I’ve published the app with the default template.

Well, unlike Unity 2019, when I upload the app to my server and I open the url I get the error message
“Uncaught ReferenceError: createUnityInstance is not defined”.

I’m not actually using any .htacces file on my server (I don’t have big issues on 2019 if I don’t use it), but for my (poor) JS knowledge it should have nothing to do with this error…

Am I missing something, or maybe Unity is getting more buggy each release?
Many thanks for your help!

Suggest you read up again the sections in the manual about deploying to WebGL to a server.

Notably, how decompression is handled now.

It could be a bug too - maybe there’s a broken version. Check with Build & Run to see if it works.

Thank-you KamilDA, it’s quite weird because now it’s working.
Maybe yesterday I did some mistake on the server