How do I secure ASP.NET web service to only allow relative path calling?
问题 I have ASMX services for my web application that I would only like available to the same application. Is there a way for the web service to only be accessible by the same application, such as relative/absolute path restrictions? 回答1: The easiest route would be to just not use a web service. If you're calling from the same application, you can probably just pull your logic into a separate class, and call it directly in your code, not via web service. 回答2: Two ways to do this: Have the web