Due to browser security restrictions, Ajax requests are subject to the same origin policy; The request cannot be successfully retrieved from another domain, subdomain, port, or protocol.
But you can create a script on your server that requests this content or can use a proxy server and then use jQuery ajax to access the script on your server.
Working script
It simply proxies the request through Yahoo servers and returns a JSONP response, even if the requested server does not support JSONP .
HTML:
<div id="example"></div>
Javascript
$('#example').load('http://wikipedia.org');
Here is the same question as yours How to circumvent a policy of the same origin
Good luck
source share