Skip to Content
May 29, 2018 at 01:04 PM

Application redirects to XSOdata service metadata URL


UI5 App deployed on local apache server. An Odata call is made in the onInit method. As soon as the service gets called, an authentication popup is created for the HANA system. The issue is that the application URL in the browser gets replaced with the actual XSODATA service URL after entering the username and password. Ideally the UI5 page should be called again after the authentication, but the URL in the browser stays at the XSOdata metadata.

UI5 Code :

var url = "https://abcde.xsodata/";

var oModel=new sap.ui.model.odata.ODataModel(url,true);"/entitysetname(1)", null, {},false, function(data){ console.log(data) },function(error){ console.log(error) });

XSOData code( In the xsaccess file) :


"exposed" : true,

"authentication" :


"method": "Basic"


"cache_control" : "must-revalidate",

"xhrFields" : { "withCredentials" : true},

"cors" :


"enabled" : false


"enable_etags" : false,

"force_ssl" : false,

"prevent_xsrf" : false


Would be grateful if someone could help out with the redirection issue.