Results 1 to 3 of 3

Thread: REST proxy connecting to a different server

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    1

    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 Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449
    Answers
    3997

    Default

    Moved to Q&A forum as this had nothing to do with Cmd
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    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
    585

    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
  •