Online highscore list

29 replies to this topic
Posted 1+ years ago #26

Ok, for Android I needed the Internet permission. For HTML your Module seems not unusable.

Posted 1+ years ago #27

As far as I know, on HTML5 you have to have the PHP and your MonkeyGame.html on the same domain. It's a protection measure implemented in browsers I think.

Posted 1+ years ago #28

Do you mean in the same folder?

Posted 1+ years ago #29

Ok, tried that. Put both in the same folder, didn't work.

Posted 1+ years ago #30

Ok found out what I still needed. At the beginning of my PHP script, I needed to add this:

header("Access-Control-Allow-Origin: *");

Now Chrome and Firefox will retrieve data in HTML5.