Skip to Content
avatar image
Former Member

Mixed Content error while accessing custom UI5 application via Fiori launchpad

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 05, 2017 at 08:43 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 06, 2017 at 01:57 AM

    your code........

    Add comment
    10|10000 characters needed 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);

      },

  • Dec 13, 2017 at 08:43 AM

    Hi Former Member,

    Have you got solution for this issue?

    If yes, please provide the solution.

    Thanks,

    Janani

    Add comment
    10|10000 characters needed characters exceeded