My domain:
scrape
It's the Same Origin Policy, which prevents cross-domain requests. If you want to scrape html, you are better off writing a server side process to get the content, then use ajax to make a request against your server, which contains the harvested data.
the Same Origin Policy prevents client side scripts from getting data from domains that are not from the originator for the request. You would need a server side script to act as a proxy
There are Four ways to get around Same Origin Policy
Access-Control-Allow-Origin
header to their page Note: The ONLY way to do it without the other domain's help is #1, routing it through your own server.
One workaround is to make a server-side script (eg. PHP) to get the page, and have $.ajax
call that.