cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

API call from UI Integration Card blocked by "CORS policy"

0 Kudos
930

I'm integrating UI Integration Cards into SAP Work Zone, and I'm trying to show data from Microsoft Outlook by calling the Microsoft Graph API. The problem now is that I need to request the /authorize and /token endpoint from the Microsoft Identity Platform to authorize the user and receive an access token to make request to the Microsoft Graph API. But when calling either endpoint, I get the error: "Access to fetch at '(requested URL)' from origin'(my URL) has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled." I also tried calling the API with the 'no-cors' mode in the fetch function, but I got an 400 (Bad Request) response.

Is there a way to surpass getting blocked by the CORS policy?

Accepted Solutions (0)

Answers (1)

Answers (1)

jhansi_jeganesh
Explorer
0 Kudos

Hi,

This issue is rosolved? If yes, please share your solution.

Regards!

Jhansi