Cumulocity-IoT / cumulocity-app-builder

The Application Builder for Cumulocity provides a simple, coding-free way to create new applications inside Cumulocity. Application Builder is an open-source tool for you to create web applications in a no-code environment. Created by Global Presales.
Apache License 2.0
16 stars 6 forks source link

Access to XMLHttpRequest at 'https://democenter.gateway.webmethodscloud.com/gateway/GitHubAPIService/1.0/repos/SoftwareAG/global-presales-assets/contents/appbuilderConfig/app-builder-config.json' from origin 'https://adsb-poc.apj.cumulocity.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. #91

Closed vikasbhatt-c8y closed 1 year ago

vikasbhatt-c8y commented 1 year ago

User has an issue in a custom app they built using the App Builder 1.3.4. App Builder seems be showing traces of Presales Demo including wM IO and wM Cloud in the Cumulocity tenant which doesn't make sense!

Errors displayed in the UI on console:

Access to XMLHttpRequest at 'https://democenter.gateway.webmethodscloud.com/gateway/GitHubAPIService/1.0/repos/SoftwareAG/global-presales-assets/contents/appbuilderConfig/app-builder-config.json' from origin 'https://adsb-poc.apj.cumulocity.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

The latest version is 2.0 but existing Custom Widgets/Runtime widgets are not compatible with the latest version as Application Builder 2.0 is based on micro-frontend architecture. https://github.com/SoftwareAG/cumulocity-app-builder/releases/tag/v2.0.0

Therefore, upgrading to latest version is not an option unless old widgets can be used as it is!

How can we resolve this issue?

AppBuilderErrorInConsole
DarpanLalani commented 1 year ago

You need to upgrade app builder to 1.3.4 to fix this issue. Existing URLs (democenter) are no longer valid.