Hey Folks,
I am trying to create an Azure Function behind CDN. This works like any other function project I had in the past, so no issue here.
When I try to get the Hostname/Domain over which the function was called I always get the function hostname (I expect as it is used as hostheader in the CDN endpoint).
Is there any way I can retrieve the origin hostname / custom domain over which the Azure CDN Endpoint was called?
I am using a C# function at the moment. I tried already to use things like :
req.Headers["x-original-host"]
req.Headers["host"]
etc.
Thanks for the help