Send request to diff host from client browser
HI!
for example i have site1.com Is it possible to send request from site1.com page witch loads in client browser, to other sites site2.com etc (i have no access to them) and parse result d开发者_开发百科ata? Is it possible to do it via javascript and how?
It's not possible for security reasons (and blocked by the same-origin policy), the only thing you can fetch is JSONP across domains (since it's a single GET), otherwise you have to proxy requests through the domain the parent page is on.
精彩评论