Do to the built in protection for cross site scripting (XSS) you won't be able to call it from a different domain that you are running the game on. So you can't host the game on your local PC and call your hosted database. To get it working on local host with WampServer you can do something like this to allow the domain request:
$http_origin = $_SERVER['HTTP_ORIGIN'];
if ($http_origin == "http://127.0.0.1:51268")
{
header('Access-Control-Allow-Origin: *');
}
Make sure that http://127.0.0.1:51268 is the correct port, that should be the correct URL for your local host. It MAY also work to change the URL to the URL of your off site SQL server and allow you to access it while running the game from your local PC.



Find content
Male




