Skip to Content
0
Apr 04, 2023 at 02:38 PM

Why can't my Fiori module access a destination when started as "HTML5 Application" (working in BAS)?

272 Views Last edit Apr 04, 2023 at 02:39 PM 2 rev

I'm currently developing a MTA with a Fiori submodule using SAP BAS. When I start the fiori submodule using "npm start" everything is working fine and I can connect to the remote destination. The problem occurs when I delpoy the application to the cloud and it is listed under "HTML5 Applications". When I start it from there, it fails with 404 errors:

error.png

Here is the file xs-app.json from the module

{
"welcomeFile": "/index.html",
"authenticationMethod": "route",
"routes": [
{
"source": "^/sap/(.*)$",
"target": "/sap/$1",
"destination": "REMOTE",
"authenticationType": "xsuaa",
"csrfProtection": false
},
{
"source": "^/resources/(.*)$",
"target": "/resources/$1",
"authenticationType": "none",
"destination": "ui5"
},
{
"source": "^/test-resources/(.*)$",
"target": "/test-resources/$1",
"authenticationType": "none",
"destination": "ui5"
},
{
"source": "^(.*)$",
"target": "$1",
"service": "html5-apps-repo-rt",
"authenticationType": "xsuaa"
}
]
}

I can provide further files if required.

How can I solve the problem of the application not being able to access /sap?

Attachments

error.png (14.9 kB)