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

Enable CORS in SAP IoT Application Enablement APIs

Former Member
0 Likes
715

Hello guys,

I need my SAP IoT Application Enablement APIs to send this header: Access-Control-Allow-Origin: *

How can I enable CORS requests on the backend?

Thanks,

Vlad

Accepted Solutions (1)

Accepted Solutions (1)

marcus_behrens1
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi, can you describe your use case in more detail?Usually you would not call the SAP IoT apis from a client but only from a server application. The server application could then use the SAML authentication mechanism based on a user session or the OAUTH2 mechanism based on client id and client secret.

Yes, I know a mash-up on the client calling multiple different back-end apis is compelling for quickyl building a prototype but from a user experience and from an operations point of view has a lot of issues. Regards, Marcus

Former Member
0 Likes

Hello,

I just need to create a really simple dashboard where I display some graphs containing some sensor data from a RPi that sends data to the IoTAE. So I'm building a small app using Svelte.js to do that (I've built one already using UI5 on the Web IDE but I need to make a custom one).

Okay so then I'll have to create a "middleware" backend to kinda fix this. But I don't really understand why you don't let users to call the API from the client (enabling CORS).

Thanks,

Vlad

Answers (0)