Cross domain AJAX Request

2 posts, 0 answers
  1. Gabriel Beauchamp
    Gabriel Beauchamp avatar
    41 posts
    Member since:
    Jan 2008

    Posted 18 Mar 2008 Link to this post

    Is it possible to do cross domain ajax requests?

    I have 2 servers. One has all my image and video files and the other has the website pages.

    I would like to be able to upload files to my file server and when finished send a signal to my website so that it knows it is done.

    Is this possible?

    My video server is something like this: videos.myDomain.com
    My website is: myDomain.com

    videos.myDomain.com and myDomain.com point to different servers.

    Thanks,
  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 19 Mar 2008 Link to this post

    Hello Gabriel Beauchamp,

    As XMLHttpRequest object is limited to only current domain, one possible solution will be to use local webservice to call local proxy class which in turn calls the remote webservice.

    For example, lets suppose you have a webpage(A) which should call a webservice B (located in different domain).
    Therefore you should create a local webservice(C) which calls remote webservice B. Then from webpage A you can call the local proxy webservice(C).

    Kind regards,
    Rosen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top