how to disable WebService call from other domains

后端 未结 2 1609
半阙折子戏
半阙折子戏 2021-01-28 21:07

i want to avoid the others to access my webservice.

I have Web Service called WebService.asmx, which is hosted in www.xyz.com and we know that we can access the servi

相关标签:
2条回答
  • 2021-01-28 21:43

    One way of doing this is to authenticate all your requests to your methods and reject the calls that are not authenticated. A very detailed answer is given here.

    0 讨论(0)
  • 2021-01-28 21:47

    Web Services can be checked form the firewall where request is coming. It can checked by the content-type of the response. All webservices have "application/soap-xml" as content-type.

    0 讨论(0)
提交回复
热议问题