When you do an AJAX request on a website, the URL you request from needs to reside on the same domain as where the request was made from. This is a security restriction imposed by the browser. There is a way to sneak around this by using a bit of a “man in the middle” approach.
PHP, being a server-side language, has the ability to pull content from any URL. So a PHP file can become the man in the … Read article “Cross Domain GET Forwarding”