Task: Analyze the loading logic of the SAP UI5 Root XML view.

Mouse over the Initiator column to find the createContent method of the UIComponent.js call stack:

As you can see, the logic here is to parse out the root view definition from the manifest. JSON and then instantiate the view.

Let’s look at another SAP UI5 application where the root view failed to load:

Access to XMLHttpRequest at ‘
https://sapui5.hana.ondemand….’ from origin ‘http://localhost:3002’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

The name of the root view is resolved successfully:

Load an XML view with Ajax:

The correct path:

Error path:


See the application of the question again:

We found the problem: case mismatch.

When the c is changed to c, the problem disappears:

More of Jerry’s original articles can be found on “Wang Zixi “: