I am using Azure CDN to publish my web application from Blob storage. I've successfully set up a custom domain. I've added a rewrite rule in the CDN to redirect my backend API services "https://my-app-**.azurewebsites.net/api/" with header Authorization.
The CDN request here and
curl --location --request GET 'https://****.azureedge.net/api/Payments?PageNumber=1&PageSize=2' \
--header 'Authorization: ****************' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json'
goes to "actual backend API"
curl --location --request GET 'https://my-app-**.azurewebsites.net/api/Payments?PageNumber=1&PageSize=2' \
--header 'Authorization: ****' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json'
But the response is always Unauthorized with the CDN. Header params are always rejected. Any reason or comment.