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