Search code examples
htmlxmlwebsocketxmlhttprequest

Receiving XML responses cross domain (XHR or Websockets)


I'm searching for a solution to pull an XML response from Google's ad service DoubleClick. If I had it my way I would just use XHR to handle the response but it's in violation of the Same Origin Policy. So I was looking into websockets as an alternative solution since it seems to handle same origin policies differently.

Can anyone give me some insight on what the best approach would be for handling this XML response client side?


Solution

  • I actually found a great plugin that will handle everything client side: https://github.com/padolsey/jQuery-Plugins/tree/master/cross-domain-ajax/