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 Dave - Oct 04, 2025, 04:52 AM
I've tried various permutations of with quotes, without with quotes and commas and a colon after the Header set Access-Control-Allow-Origin: https://www.davejohnson.co.uk but the only thing that works is the wild card.

I should add at this point I'm not testing the game only the CORS
#52
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.
#53
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
#54
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.
#55
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 ?
#56
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?
#57
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
#58
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?
#59
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
#60
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.