How to enable CORS

Hi, i am trying to use Uipath Api with angular and it give me this error : has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status. I already added custom header in my web.config in my IIS like that : customHeaders>
clear />
remove name=“X-Powered-By” />
add name=“Access-Control-Allow-Origin” value="*" />
add name=“Access-Control-Allow-Credentials” value=“true”/>
add name=“Access-Control-Allow-Headers” value=“Content-Type” />
add name=“Access-Control-Allow-Methods” value=“GET, POST, PUT, DELETE, OPTIONS” /> "
/customHeaders>
Any idea what is the problem ?

Hello @leo.malet ,

Please check the below post. Hope it can give some solution for you.

Ok i resolved my problem it was in my IIS HTTP VERBS OPTIONS was not allowed so now its work perfectly

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.