I have an azure front door configuration that I would like to handle requests for any path and execute a function that will either return a redirect to another path or will allow the request to continue to another origin. I am seeing a few problems, the function is only being called for the root path demo-abc.azurefd.net/
. Even though the route is configured to match /*
. When I request something like demo-abc.azurefd.net/test
, the function is not called and a 404 not found is returned.
The second issue I am finding is that in the function, the request path is for /api/demo
when I really need to know what the original requested path was, not the path of the function.
Happy to provide any configuration details required!