Trying to receive a response from a PHP which is on a different domain to my HTML:
$.get('getstate.php', {
email: $('#game-email').val(),
country: 'DE',
lang: lang,
source: 'promotion'
}, function (data) {
console.log(data);
});
In chrome I get this error:
XMLHttpRequest cannot load ..... Origin null is not allowed by Access-Control-Allow-Origin.
What do I need to do to achieve this?