TAdvWebBrowser - set Authorization Header

In order to fetch an OAtuh 2.0 protected resource I need to assign an access token to the Authorization Header - how can I do this with TAdvWebBrowser?

Thanks in advance

BR Robert

With this sample, you should be able to navigate to an URL with authorization header & post data

Sample.zip (90.2 KB)

The data in the sample is not actualy data but a template, to be replaced with your own.

Do you have any more examples of how to do this ? It's not immediately obvious where a Token would go here. I'm trying to pass a valid token to the MS Graph API

It depends on the API, but in the sample the template uses Authorization: Basic. In MS Graph API you can use Authorization: Bearer [Token], replacing [Token] with the actual token value.