Unable to establish connection to orchestrator API using angular

Hi Team. I am Angular Developer and new to UiPath. I am trying to access UiPath orchestrator data and project in our In-hous application. I am able to connect with Orchestrator API endpoints ang fetch data. But unable to achieve it in the Angular, it would be greate if we have an call and discuss in this detail as it’s an urgent need and it’s affecting the project timeline.

Access to XMLHttpRequest at ‘https://account.uipath.com/oauth/token’ from origin ‘XXXX.com’ has been blocked by CORS policy: Request header field x-uipath-tenantname is not allowed by Access-Control-Allow-Headers in preflight response.

Hi @raghu.annadurai,
Welcome to the community!

As you have mentioned, the issue occurs when you are using Angular and the issue seems to a CORS issue and probably not a UiPath issue (at least from the face of the error). There are multiple resources available online which can help you resolve the CORS issue (both at the browser level and at the project level[recommended]).

Do let me know if this helps