View Full Version : REST proxy connecting to a different server

28 Jan 2013, 8:50 AM
I am developing an app in Ext JS 4.1. My problem is to send a request from my app to a web service in a different server. I know that AJAX can not connect to a different server, but this is possible for REST proxy? Someone know if there is a solution for this problem?

Kind regards

30 Jan 2013, 10:33 AM
Moved to Q&A forum as this had nothing to do with Cmd

30 Jan 2013, 7:24 PM
REST uses AJAX, so if AJAX can't do it then neither can REST.

To access services on different servers you should consider either JSON-P or CORS (cross-origin resource sharing). Neither approach is specific to ExtJS, they're both standard approaches that are well-documented elsewhere. Both have their drawbacks and I suggest researching them thoroughly before choosing which way to go.