0

Possible Duplicate:
Ways to circumvent the same-origin policy

I want to connect to another domain using AJAX. The problems are:

  • I don't control that server, so I can't use Cross-origin resource sharing
  • The server's response is not JSON (is XML), so I can't use JSONP

Currently I use AJAX to connect to a php file in my server which uses file_get_contents to get those XML files from the other server.

And it works well, but it would be nice if I could handle all connection using only JavaScript. Can I?

4

0 回答 0