Skip to Content

XMlHttpRequest Error in Fiori application


I have created a sample Fiori Master Detail application. When I try to run the app, it's displaying a blank screen with  a warning message.

Message: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check





        <meta http-equiv="X-UA-Compatible" content="IE=edge" />

        <meta charset="UTF-8">


        <script id="sap-ui-bootstrap"






                data-sap-ui-resourceroots='{"${namespace}": "./"}'>



        new sap.m.Shell({

  app: new sap.ui.core.ComponentContainer({

  height : "100%",

  name : "${namespace}"





    <body class="sapUiBody" role="application">

        <div id="content"></div>




sap.ui.core.UIComponent.extend("${namespace}.Component", {

    createContent : function() {

        // create root view

        var oView = sap.ui.view({

            id: "idViewRoot",

            viewName: "${namespace}.view.Root",

            type: "XML",

            viewData: { component : this }


        // set data model on root view

        oView.setModel(new sap.ui.model.json.JSONModel("model/mock.json"));

        // set i18n model

        var i18nModel = new sap.ui.model.resource.ResourceModel({

            bundleUrl : "i18n/"


        oView.setModel(i18nModel, "i18n");

        // done

        return oView;



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 22, 2015 at 07:06 AM

    Hi Karthik;

    This is a warning message usually present in the console log when we make a request to the resources. Are you running your application in the ABAP system or only in the eclipse.

    Please share the root view code also. If possible share a screenshot of any error you are getting in the console.

    Please go through this document for building step by step a custom fiori application.

    Building SAP Fiori-like UIs with SAPUI5 in 10 Exercises


    Sarbjeet Singh

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 27, 2015 at 01:56 PM

    Now it is working well after replacing the script src as "". Dont know what's wrong with "resources/sap-ui-core.js".

    Add comment
    10|10000 characters needed characters exceeded