CORS - Error While calling rest API Authenticate -- Calling api method from angular app

Access to XMLHttpRequest at ‘…/api/Account/Authenticate’ from origin
http://localhost:4200’ has been blocked by CORS policy:
Response to preflight request doesn’t pass access control check: It does not have HTTP
ok status.

Hi @Pawan_Jha

Please give us more context.

Hi,

we have an web application and we are trying to add assets from the application. So will you please help me what to do please.
I am trying to access the api http://domain/odata/Assets from web application using javascript

Hi @Pawan_Jha

Please refer to this thread, I hope it’s helpful:

6 posts were split to a new topic: Cloud Platform API - CORS issue while using API via custom web app

A post was merged into an existing topic: Cloud Platform API - CORS issue while using API via custom web app