Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Consume odata service from UI5 application running on portal

$
0
0

Hi Experts,

      I have a simple scenario. I have a UI5 application deployed and running in SAP Enterprise portal and have to consume an oData service developed using SAP Netweaver Gateway of an ABAP application server. But, when consuming such a odata service, i'm getting 'Cross Origin Resource Sharing' error in the browser saying the domains of portal and abap server are not same. My portal server has the hostname as portal.abc.com and my abap server's host name is abapserv.abc.com, so i expect that it should be possible to consume the odata service, but it still gives this error.

 

I also tried using the proxy mechanism by replacing the odata service url as /proxy/http/<odata url>, but, that's also not working from Portal server, though it works well from a tomcat server.

 

Kindly help me with a way here.

 

Thanks & Regards

Vijay.K


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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