I'm currently working on an Azure Front Door Application that contains cache. The idea is that we have a webhook that would call our API to fetch the endpoint and purge the cache.
I've already added the CDN Endpoint Contributor permission to my service principal and I've been able to authenticate using Auth Flow without any issues

The problem arises when I have to fetch whatever from the Azure rest API.
All my requests go trough using the token and present a successful response. But, all the responses are empty.
Example of fetching the endpoints inside my app, using the API

But, in Azure Portal, you can clearly see that there are endpoints available ( they were created weeks ago so it's not a propagation issue ).
Does anyone have any clue what this could be? Any help would be appreciated, thanks.




