I have the following setup on azure:
- 1 app service for .NET backend
- 1 app service for angular frontend with a custom domain
- 1 SQL server
I created a virtual network, I added 2 subnets for frontend and backend.I assigned these subnets to application services.
I would like to allow only the frontend to access my backend but my frontend receives 403 from my backend.
I created Access Restrictions that allow only inbound connection from the subnet, or IP but my frontend receives 403 when is trying to access it. What could be the problem?
2
Answers
Late Update:
I managed to solve this by adding a NGINX server in front of the Azure App service.
As you are getting
403
which implies forbidden, so looked like an access issue here.As per the official documentation, you may need to provide permissions as well to the subnet or at a higher level.