Asp.net Cross Domain Form Posting

前端 未结 2 1583
死守一世寂寞
死守一世寂寞 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:37

    If you have access to both applications then the best way is to do it server side.

    So make a web service available and consume it from the posting application.

    or

    Use httpwebrequest server side, see link below.

    http://www.netomatix.com/httppostdata.aspx

    On the client you could use a library such as http://easyxdm.net/wp/ - though there is a bit of a learning curve.

    Here are a couple of links that may help you if you dont want to use the above routes and are prepared to edit your asp.net pages.

    http://blog.dmbcllc.com/2009/11/11/asp-net-cross-domain-form-submission/

    Cross-Domain Posting in ASP.Net loses Form Fields

提交回复
热议问题