4

Is there any way to limit an Azure function to just be allowed to be called from a particular domain? It is just in order to do not have an api exposed in public, I want that api to just be consumed from my webapp, deployed in a particular domain, let's say webappexample.org

Thanks in advance.

Joy
  • 1,171
  • 9
  • 15
Juan Garcia
  • 843
  • 2
  • 11
  • 34

1 Answers1

0

Yes, you could implement with the Access Restrictions under the Networking, you could add access restriction rule to restrict IPv4 , IPv6 or Virtual Network.

Further more information you could refer to this official doc: Azure App Service Access Restrictions.

enter image description here

George Chen
  • 13,703
  • 2
  • 11
  • 26
  • 1
    Thanks @George. As you can read in my question, I want to restrict by domain, not by ip or networking conditions. Do you know how to do it? – Juan Garcia Mar 17 '20 at 14:42
  • I don't think function support the domain restrict, and you could get your azure web ip I don't think you have to use the domain to restrict it. – George Chen Mar 17 '20 at 15:10