Trying to call a URL using destination. It is setup as OAuth2ClientCredentials with token url, client id and client secret.
It works from postman and also from test.http by getting bearer token.
But if called from BTP destination in CAP app - it does'nt work. It is returning - Unauthorized when run in debug or from terminal.
If you try to connect to the remote service from developing environment, you need to bind to xsuaa and destination services as described in the document below: