cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How can I avoid the Access-Control-Allow-Origin problem, when deploying a UI5 project.

0 Likes
848

As I need to call a HTTPS URL in a UI5 project's controller,

but it showed the following message.

Then I found that, if I set the URL to [ui5.yaml], it can be worked.

But I was not happy for long.

After I deployed the program as a HTML5 APP in BTP Cloud Foundry, it failed with a 404 error.

Besides [ui5.yaml], what other configuration files should I modify? Please help me.

Accepted Solutions (1)

Accepted Solutions (1)

WouterLemaire
SAP Mentor
SAP Mentor

You can use a destination and configure this in the xs-app.json as mentioned here https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/9b178ab3388c4647b0c52f2c856...

0 Likes

Thank you very much. I solved the problem with the following Settings.

Answers (0)