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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    Moved to Q&A forum as this had nothing to do with Cmd
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,791
    Answers
    584
    Vote Rating
    392
      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
  •