super-repair-bros / super-repair-bros

Drive around and repair broken cars. You get extra points for smashing a few turtles along the way! But beware, there are only 20 seconds for you! Made during Global Game Jam 2020.
https://superrepairbros.de/
12 stars 5 forks source link

Fix highscore list in HTML #12

Closed ChLah closed 4 years ago

ChLah commented 4 years ago

When using HTML version no highscores are shown

ChLah commented 4 years ago

Ok, I think I found the problem by just looking at Chrome's developer console. When getting the highscores, the following error appears: index.js:7 Mixed Content: The page at 'https://superrepairbros.de/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://dreamlo.com/lb/5e37f0b3fe232612b8eac82f/json-desc'. This request has been blocked; the content must be served over HTTPS. It seems, dreamlo does not support HTTPS... @all : Any ideas about that? Disabling highscores in the HTML version would be a shame!

ChLah commented 4 years ago

Lessons learned: Dreamlo has a valid certificate but for *.gear.host, so I just tried https://dreamlo.gear.host and this works!! But unfortunately, you have to enable HTTPS via a donation of at least 5$ on your leaderboard to use this url :(

ThomasChr commented 4 years ago

I've donated those 5$ and told him to activate SSL for us. So let's hold tight...

ThomasChr commented 4 years ago

Still no answer from him. I'll set up an Apache Server (on tcv8.de) which will forward all Requests from https to dreamlo in http meanwhile. That should gab the time until dreamlo will grant us https Access.