Results 1 to 3 of 3

Thread: REST proxy connecting to a different server

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default REST proxy connecting to a different server

    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

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Moved to Q&A forum as this had nothing to do with Cmd
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Answers
    583
    Vote Rating
    391
      0  

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •