QUICK NEWS

{NEW} - A new css video is up.

{OLD} - New video courtesy of Skhilled, Thanks for posting it up.

Video of the moment:


Internal Links

SMF Sites

Quick Info

Recent posts

#51
Coding & Mods / Re: Direct file links from web...
Last post by Neša - Oct 04, 2025, 04:50 AM
I think we are having issues with the config not sure what the problem is.
#52
Coding & Mods / Re: Direct file links from web...
Last post by Dave - Oct 04, 2025, 04:45 AM
Quote from: Neša on Oct 04, 2025, 04:41 AMhmm.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://davejohnson.co.uk/test/AdvanceGuardianHeroesUSA.gba. (Reason: CORS header 'Access-Control-Allow-Origin' does not match 'https://www.davejohnson.co.uk'

what if you remove the quotes ?

I'll try that now
#53
Coding & Mods / Re: Direct file links from web...
Last post by Dave - Oct 04, 2025, 04:44 AM
Quote from: Neša on Oct 04, 2025, 04:37 AMwhat if you put the url back in but keep the single quotes?

No that doesn't work. I did try that after reading your last post, then when I went to that link you posted I read about the wildcard.
#54
Coding & Mods / Re: Direct file links from web...
Last post by Neša - Oct 04, 2025, 04:41 AM
hmm.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://davejohnson.co.uk/test/AdvanceGuardianHeroesUSA.gba. (Reason: CORS header 'Access-Control-Allow-Origin' does not match 'https://www.davejohnson.co.uk'

what if you remove the quotes ?
#55
Coding & Mods / Re: Direct file links from web...
Last post by Neša - Oct 04, 2025, 04:37 AM
what if you put the url back in but keep the single quotes?
#56
Coding & Mods / Re: Direct file links from web...
Last post by Dave - Oct 04, 2025, 04:34 AM
If I remove the davejohnson.co.uk and put in a wild card '*' 

<IfModule mod_headers.c>

    Header set Access-Control-Allow-Origin '*'

    Header set Access-Control-Allow-Methods "GET, HEAD"

    Header set Access-Control-Allow-Headers "Content-Type, Authorization"

</IfModule>

then it works using

https://davejohnson.co.uk/test/AdvanceGuardianHeroesUSA.gba with no errors, but I am aware that is dangerous as far as security is concerned.

I will keep playing around, there must be a way to do this
#57
Coding & Mods / Re: Direct file links from web...
Last post by Neša - Oct 04, 2025, 04:18 AM
I found a CORS test.
https://cors-test.codehappy.dev/?url=https%3A%2F%2Fwww.davejohnson.co.uk&origin=https%3A%2F%2Fwww.quizland.co.uk%2F&method=get

When I did the test I see ? character I wonder if the " wasn't encoded properly maybe try changing them to ' in the config?
#58
Coding & Mods / Re: Direct file links from web...
Last post by Dave - Oct 04, 2025, 03:54 AM
Quote from: Neša on Oct 04, 2025, 03:01 AMIt's interesting that the game works with the IP alone.
In shared hosting they use a virtual site, they have one IP and configurations with different URLs that will route to different sites.
This works because you send a reference to the web server of the URL you are trying to get to.

The email delay is happening on some SMF 2.1.6 forums, they say it should be fixed in 2.1.7

Have you tried to make it https://www.davejohnson.co.uk/test/? not sure if it will fix it /test is just a directory.



Thanks again for the reply. Yes I tried the '/test' option but that made no difference the game still worked with the IP address but not with the web address. I'll keep at  ;D
#59
Coding & Mods / Re: Direct file links from web...
Last post by Neša - Oct 04, 2025, 03:01 AM
It's interesting that the game works with the IP alone.
In shared hosting they use a virtual site, they have one IP and configurations with different URLs that will route to different sites.
This works because you send a reference to the web server of the URL you are trying to get to.

The email delay is happening on some SMF 2.1.6 forums, they say it should be fixed in 2.1.7

Have you tried to make it https://www.davejohnson.co.uk/test/? not sure if it will fix it /test is just a directory.

#60
Coding & Mods / Re: Direct file links from web...
Last post by Dave - Oct 04, 2025, 02:43 AM
Another update.

As in the previous post the games works using the sites IP address. I found I didn't need the
IP:443 as the game works without it, but now when I test play the game I get an SMF error as per the image attached, the game plays fine and loads as it should, again if I substitute the IP address for the normal website the game doesn't play.

I will keep testing stuff over the next few hours and if I find anything I'll let you know.

Please don't spend to much time on this, now I'm retired it's something I do to pass the time, but I'm sure you have better things to do. If something sticks out then please let me know other than that please feel free to ignore it  :rgton


NOTE: I have now removed the link address from the 'Optional External Link' so the file will play from the internal Quizland folder