Skip to Content
1
Dec 13, 2022 at 11:47 AM

CORS errors on running a sample SAP FIORI app

766 Views Last edit Dec 19, 2022 at 09:34 AM 5 rev

screenshot-2022-12-13-at-51512-pm.png

Hi

I just started learning SAPUI5 and SAP FIORI and was trying to bring a small application up. But on running cds watch and trying to access is through my localhost, its giving me the attached CORS error to 'https://ui5.sap.com/shells/sandbox/fioriSandboxConfig.json' which is a ui5 managed url, so should it not have been managed ?

Mentioned the ui5 version below, kindly let me know if you need anymore information :

ui5 --version

2.14.16

Was setting up this sample : https://developers.sap.com/group.btp-app-cap-create.html

I have gone through solution given in : https://answers.sap.com/questions/13744804/cors-issues-in-fiori-sandbox-since-11070.html

But, should not there be a better solution than adding all the ui5 URLs that would come one after the other?

Attachments