cancel
Showing results for 
Search instead for 
Did you mean: 

How to connect External API to WebIDE application

0 Kudos

Dear experts,

I have an issue with API connection.

I need to create connection between Commissions API and WebIDE application(fiori).

COmmissions contains API with i could use, but i cant connect to my WebIDE, but from POSTMAN all works..

I have 2 main errors, when i try to use API in webide, maybe they are connected or no, idk.

1) 401 (Unauthorized)

2) Access to XMLHttpRequest at "xxxxxxxxxx" has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Maybe someone knows, where is a problem or know another way.

Thank you a lot & Best Regards,

Dmitry

Accepted Solutions (0)

Answers (2)

Answers (2)

Kura_Bharadwaj
Explorer
0 Kudos

Hey Bezly,

The issue can be resolved by using the API key. Try to save the API key in the .env file and use the API key while calling the external API. I hope this fix resolves your issue.

Regards/-
Kura

melvin_poinoosawmy
Discoverer
0 Kudos

Anyone?
I have same issues using Spotify API on WebIDE

Best regards

Melvin