cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi All,

I'm using SAP Data Intelligence v3.1 and DI Modeler for the below scenario.

I'm hosting a web server via the OpenAPI Servlow operator with swagger documented service definitions, and I am trying to consume the same via a reactJS UI application. And when I am trying to make REST requests, the browser triggers a pre flight check and an OPTIONS request is made to the Servlow server and I'm returned a "NO CORS Error"

I am currently going around it by two ways,

1. Using a proxy such as cors-anywhere (for local requests) and accessing the APIs exposed via Servlow

2. Using a chrome window with web security disabled (for accessing the React application when its deployed to a cloud).

But since these two cannot be viable fixes when going to production, is there any way to properly handle cross origin requests when exposing web services via the DI Modeler and the Servlow operator?

0 Likes
View Entire Topic
0 Likes

Hi invenics, indu.khurana18,

I also face the same issue. I have build REST API on SAP Data Intelligence then try to request from SAC. Have try suggestion from marcel.oenning but still the same.

Did you found the solution to enable the CORS?

Thank you.

Regards,