简体   繁体   English

如何保护仅由asp.net Web应用程序调用的asmx Web方法?

[英]How to secure my asmx web methods only to be called by my asp.net web application?

I have a web application which is having an asmx web service holding some web methods. 我有一个Web应用程序,其中有一个包含一些Web方法的asmx Web服务。 Those are being called through jQuery ajax method to get data or do various operations. 这些通过jQuery ajax方法被调用以获取数据或执行各种操作。

I want it to be accessed by only my web application and no other ways to call the web methods and this should be a fully secured one. 我希望只能由我的Web应用程序访问它,而不能通过其他任何方式调用Web方法,这应该是一种完全安全的方法。

Can any body suggest on what are the security threats might affect my web methods and how i can protect them from those threats ? 谁能提出建议,哪些安全威胁可能会影响我的Web方法,以及如何保护它们免受这些威胁的侵害?

Any suggestions are appreciated. 任何建议表示赞赏。

如果您正在使用会话状态,则可以使用它

 [WebMethod (EnableSession = true)]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM