One other option to consider is flash-based cross-domain XHR. I've had a project around for awhile called flXHR which implements the identical XHR interface but uses an invisible flash component in the background.
http://flxhr.flensed.com Biggest caveat is of course flash (but it's pretty ubiquitous, except on iOS). Also, the target server has to publish a crossdomain.xml policy file. Those caveats aside, a lot of people have been making good use of flXHR for quite awhile. And there are other flash-xhr type solutions available if you prefer a different API than XHR. --Kyle On Feb 5, 10:23 am, Gaurav Yadav <[email protected]> wrote: > Hi Guys, > > The problem : Same origin policy, it doesn’t allow any cross domain > XHR request > > I have gone through the discussions on the internet and found the > following possible solutions: > > 1) JSONP (can be used) > 2) Hidden Iframes (not possible as developers needs control of both > the domains) > 3) window.postMessage (not sure if JavaScript libraries can make it > work in old browsers i.e. IE6) > 4) Cross-Origin Resource Sharing (CORS) (not possible to support old > browsers i.e. IE6) > 5) The Reverse Proxy method (not possible developers needs control > over server of the users website) > 6) easyXDM (need to explore how to use it) > > Firstly i would like to confirm with you guys that the brief analysis > done by me of the different approaches possible is correct and i am > not missing out on any great solution that anyone is using and if my > analysis is correct i would like to discuss the pros and cons of these > approaches. > > Secondly I know that Facebook, Twitter, Google all of them share their > apps (exactly the way i want to share) and have overcome this problem > in order to do so, Can anybody point me in the direction where i could > find more about how they have solved this problem. -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
