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

How to connect External API to WebIDE application

Former Member
0 Kudos
294

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

View Entire Topic
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