I am currently working on an API with GraphQL that uses Bearer tokens for authentication. It's strange because it always works in Postman, but when I try it in Business Central, it doesn't.
It seems like the API doesn't recognize that I want to use Bearer tokens for authentication because I always get some HTML code as a response.
Here is my code:
Answers
I never use the DefaultRequestHeaders, you can try something like this that works for me
Where RequestHeader is
Regards.