How do I secure ASP.NET web service to only allow relative path calling?

后端 未结 3 1121
一生所求
一生所求 2021-01-25 08:39

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 sam

3条回答
  •  难免孤独
    2021-01-25 08:55

    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.

提交回复
热议问题