Trying to send json from web hosted game (itch.io blocks http)

Godot Version

4.3

Question

For a research project I want to send a simple JSON file to a server after the player has completed the game. I set up some bare-bones HTTP post-request and it works when run in the local browser.
For the ease of the user I want to host the game on the web and Itch.IO seems pretty perfect for that. Unfortunately Itch.IO does only allow HTTPS request, so mine gets blocked.

Web console Log:
[…] was loaded over HTTPS, but requested an insecure resource <http_address>. This request has been blocked; the content must be served over HTTPS.

Now I’m looking for a solution.
Is it worth going through the certificate trouble to get HTTPS running on Itch?
Are there other good hosting sides that allow the HTTP request to happen?

Maybe somebody has experience dealing with this. Thanks in advance.

If you didn’t wanna use itch.io and already have a web server, you could just host your game there. Otherwise, I think all browsers are going to block this kind of request that goes from HTTPS to HTTP.

It depends on your server but usually adding SSL isn’t too much trouble and you can get free certificates through something like letsencrypt.org. Or if you’re using a cloud provider like AWS or GCP, they usually have dedicated certificate services (that are also free).

1 Like