Cross Origin Issue in Cloud.UIPATH.com Orchestrator account

Hello Experts,

I am using cloud.uipath.com for triggering some processes in backend. These processes are triggered from orchestrator and I am able to execute them successfully via postman.
But the angular application which is trying to access the api is getting CORS issues.
my current version of studio is 2021.10.4

I went through various issues reported before and have tried below steps already-

  1. Access-Control-Allow-Origin- * in the headers
  2. Tried adding the cors extension
    Since its a orchestrator hosted on community edition, can you please advise on how this could be fixed?
    Is there any setting that we need to setup in my orchestrator account?
    Please suggest.
    Regards,
    SK
1 Like

Could you please show your request details from the angular app please…

This usually occurs if you are trying to hit the API from a bare frontend.

Thanks
#nK

Hi Nithinkrishna,
I am getting below message.
Access to XMLHttpRequest at ‘https://account.uipath.com/oauth/token’ from origin ‘http://xxxxxxx’ has been blocked by CORS policy: Request header field x-uipath-tentantname is not allowed by Access-Control-Allow-Headers in preflight response.

here http://xxx is the ip of the angular server

Do we have to register this is an external application or some other setting on orchestrator account?

Please advise
Regards,
SK

1 Like

Hey @Saritha_Koroth

Yes please register the app in the orchestrator and try using that key with proper scope permissions.

If still not working please let us know.

Thanks
#nK