Struggling with MAUI to send a GET call from Android device to an API that requires Bearer auth. Setting the Authorization
header in the HttpClient
like so:
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", token);
However at the API endpoint, the Authorization
header is not being received at all.
We have also tried sending an HttpRequestMessage
with the Authorization
header set explicitly, but still no dice.