Quantcast
Channel: SCN : Unanswered Discussions - SAP Gateway
Viewing all articles
Browse latest Browse all 1745

consume OData into UI5 application : Access-Control-Allow-Origin

$
0
0

Hi Experts,

 

I'm trying to create simple application (displaying a table in UI5 by consuming OData services created in backend).

 

While executing the application in browser, I'm getting the below error:

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:61195' is therefore not allowed access. The response had HTTP status code 401.

 

 

What I did is as below:

1. Create the OData service in backend (its running successfully, I tried it in gateway client).

2. Develop UI5 application with table in eclipse.

UI5 code as below:

 

Capture.PNG

 

Error:

Capture.PNG


Viewing all articles
Browse latest Browse all 1745

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>