Skip to Content
0
Jun 18, 2020 at 06:07 PM

Unable to Connect Northwind Odata Service through UI5!

483 Views

Hi,

I am trying to consume an Odata Service through JS code only (No Cloud Connector)

Controller:

var url = "https://services.odata.org/V2/Northwind/Northwind.svc/";

var oModel = new sap.ui.model.odata.v2.ODataModel({ serviceUrl: url});

oModel.read("Categories",
{ 
method: "GET",

success:
function (data) {
// read data Success },

error:
function () {}
});

I am getting CORS Error as attached in image

Attachments

capture.png (10.7 kB)
qhmwl.png (13.1 kB)