Asp.net Cross Domain Form Posting

前端 未结 2 1588
死守一世寂寞
死守一世寂寞 2021-01-14 07:23

Is it possible to post data from an asp.net application in one domain to another application on a different domain?

I\'ve seen some of the posts where people mentio

2条回答
  •  暖寄归人
    2021-01-14 07:48

    It's absolutely possible, and pretty easy to do.

    1. Browser posts data to your .net app
    2. Your app uses the HttpWebRequest object to post data to the 3rd party site
    3. 3rd party site gives data back to your app or simply accepts post.
    4. Your app responds to the browser with whatever you need.

    I have no idea why you would "inject forms into the response stream" or do anything funky like that. Perhaps you could add a bit more about your requirements.

    Chris.

提交回复
热议问题