Games no longer start when pressing play

feedback, questions and discussion relating to www.bbcmicro.co.uk
Post Reply
User avatar
picosonic
Posts: 211
Joined: Mon Feb 17, 2020 12:20 pm
Contact:

Games no longer start when pressing play

Post by picosonic »

It would seem that games won't start any longer when pressing play on either the summary list or details page of a game.

I think it relates to the diskimage URL being http and not https.

e.g.
The error I see is
An error occurred - sorry!
While initialising:
Error: A network error occurred loading http://bbcmicro.co.uk//gameimg/discs/74 ... oggerP.ssd
When I manually change the discimage part of the URL to https it then works as expected.
The browser console, has this error
Blocked loading mixed active content "http://bbcmicro.co.uk//gameimg/discs/74 ... oggerP.ssd"
Which confirms that it's the browser blocking HTTP content when the main page is served by HTTPS
User avatar
lurkio
Posts: 4351
Joined: Wed Apr 10, 2013 12:30 am
Location: Doomawangara
Contact:

Re: Games no longer start when pressing play

Post by lurkio »

I'll try and have a look, but I'm an amateur webdev at best, and the real problem is that the original developer of bbcmicro.co.uk hasn't been active in the community for a while, and no one has really replaced him.

:!:
User avatar
picosonic
Posts: 211
Joined: Mon Feb 17, 2020 12:20 pm
Contact:

Re: Games no longer start when pressing play

Post by picosonic »

lurkio wrote: Fri Jan 13, 2023 3:31 pm I'll try and have a look, but I'm an amateur webdev at best, and the real problem is that the original developer of bbcmicro.co.uk hasn't been active in the community for a while, and no one has really replaced him.
I think you just need to detect if it's HTTP or HTTPS then adjust disk image URL accordingly.

I'd be happy to look if it would help.
User avatar
sweh
Posts: 3314
Joined: Sat Mar 10, 2012 12:05 pm
Location: 07410 New Jersey
Contact:

Re: Games no longer start when pressing play

Post by sweh »

FWIW, http sites will always be able to download content from http or https; but I believe https sites are now restricted by the browser to only access https served data.

However when I just looked, pressing the "play" button went to a http site ( e.g. http://bbcmicro.co.uk//jsbeeb/play.php? ... ssd&noseek ), I saw the "not secure" warning on the URL bar, and the game loaded just fine.

Maybe lurkio just hacked this solution :-)
Rgds
Stephen
User avatar
picosonic
Posts: 211
Joined: Mon Feb 17, 2020 12:20 pm
Contact:

Re: Games no longer start when pressing play

Post by picosonic »

sweh wrote: Fri Jan 13, 2023 10:33 pm FWIW, http sites will always be able to download content from http or https; but I believe https sites are now restricted by the browser to only access https served data.

However when I just looked, pressing the "play" button went to a http site ( e.g. http://bbcmicro.co.uk//jsbeeb/play.php? ... ssd&noseek ), I saw the "not secure" warning on the URL bar, and the game loaded just fine.

Maybe lurkio just hacked this solution :-)
You’re right.

I think the issue is when I visit the site it auto directs me to the https site. Then when the URLs are generated for the play buttons they just always put in http for the disc image part.

This works if the site is browsed to in http but not if the site is browsed too as https or if you get auto redirected to https.

Just needs to honour the URL scheme of the referring page, then all good for both.
User avatar
MarkMoxon
Posts: 605
Joined: Thu Jul 18, 2019 4:38 pm
Contact:

Re: Games no longer start when pressing play

Post by MarkMoxon »

picosonic wrote: Fri Jan 13, 2023 2:21 pm It would seem that games won't start any longer when pressing play on either the summary list or details page of a game.

I think it relates to the diskimage URL being http and not https.
This should be fixed now - I've tweaked the link code so that the http/https protocol in the "play" link is the same as the page URL (so there should no longer be a mismatch between the parent page and the argument sent to JSBeeb). Hopefully this will fix the network errors in JSBeeb.

Let me know if you are still having problems!

Mark
User avatar
picosonic
Posts: 211
Joined: Mon Feb 17, 2020 12:20 pm
Contact:

Re: Games no longer start when pressing play

Post by picosonic »

MarkMoxon wrote: Sun Jan 15, 2023 2:35 pm This should be fixed now - I've tweaked the link code so that the http/https protocol in the "play" link is the same as the page URL (so there should no longer be a mismatch between the parent page and the argument sent to JSBeeb). Hopefully this will fix the network errors in JSBeeb.

Let me know if you are still having problems!
Thanks for the swift fix, yes all good now
Post Reply

Return to “the complete BBC games archive”