Az AJAX kérések biztonsági okokból nem működnek különböző domainek között. Tapasztalataim szerint, akkor sem, ha azok a domain nevek ugyan arra az IP-re mutatnak. A W3C Cross-Origin Resource Sharing javaslata alapján azonban ez megkerülhető. A válasz header-je a következő sort kell, hogy tartalmazza:
Access-Control-Allow-Origin: http://requesturl.example
A CORS részletes leírása itt található, ajánlatos elolvasni a változtatások előtt.
The AJAX requests, for security reasons, are not working across different domains. As far as I know not even if these domains are referring to the same IP adresses. The W3C Cross-Origin Resource Sharing proposal can solve this problem, if the response header contains the following entry:
Access-Control-Allow-Origin: http://requesturl.example
The detailed description of CORS can be found here, should read before make changes.