Hi everyone
I recently uploaded a webgl game to itch.io which downloads asset bundles from my server when booting up. Although this worked in my editor, this failed on itch.io.
I already read on this post that the issue is likely due to the server hosting the game (itch.io in this case), which is preventing the game from successfully downloading the bundle.
I just wanted to ask if any of you know of any free platforms that can run webgl games and download asset bundles successfully. Thanks in advance!
The runtime environment is in the browser so if you’re hosting the assets on a different domain there will be CORS issues. Did you set access control headers on the server to allow itch.io?
In my specific case, I have (very insecurely) left the asset bundles on my server completely public and downloadable by anyone, so I don’t know if that could be the issue.
but CORS is determined by a specific header that you have to explicitly set, if you didn’t set 'Access-Control-Allow-Origin: *" in the header of the response, the browser will still fail that call