Azure Static Website API overrides the Bearer attribute in the header

Hi, I’ve been trying to implement my Auth0 protected API in the new azure static web app resource. The problem is that the calls to the api are internal and Microsoft overrides the Bearer in the call header from the static web app and inserts their own JWT.
How can I transfer the token without it getting overwritten?