Skip to Content
0

Mixed Content error while accessing custom UI5 application via Fiori launchpad

Apr 05, 2017 at 08:41 PM

315

avatar image
Former Member

Hi All ,

When I am trying to launch my custom UI5 application which performs a read operation to backend system via Chrome browser , I am not able to get the data because the call to meta data service fails :

Mixed Content: The page at 'https://xxx.xxx/fiori?sap-client=100&sap-language=EN&sap-sec_session_created=X#ZDEMOCSEM-display' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://xxxxxxsap/opu/odata/sap/ZDEMO1_SRV/$metadata'. This request has been blocked; the content must be served over HTTPS.

Please suggest what can be done that the call to metadata uses HTTPS instead of HTTP.

The application works fine in IE browser.

Thanks and Regards

Vivek

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Srikanth KV Apr 05, 2017 at 08:43 PM
0

change server side settings to use HTTPS protocol for the FIORI application

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Please elaborate.

0
Jun Wu Apr 06, 2017 at 01:57 AM
0

your code........

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

onInit: function()

{

var sServiceUrl = "https:/XXXX/sap/opu/odata/sap/ZDEMO1_SRV";

var oModel = new sap.ui.model.odata.ODataModel(sServiceUrl,true);

var oJsonModel = new sap.ui.model.json.JSONModel(); oModel.read("CustomerSet?",null,null,true,function(oData,repsonse){ oJsonModel.setData(oData); }); sap.ui.getCore().setModel(oJsonModel);

},

0
Janani S Dec 13, 2017 at 08:43 AM
0

Hi Former Member,

Have you got solution for this issue?

If yes, please provide the solution.

Thanks,

Janani

Share
10 |10000 characters needed characters left characters exceeded