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-
- Access-Control-Allow-Origin- * in the headers
- 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?
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.
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?
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.