Showing results for 
Search instead for 
Did you mean: 

Re: Call backend api hosted on MindSphere from UI app hosted on MindSphare - CORS Issues

Depending on the use case, you might be able to deploy both your backend apps (or frontend + backend, ...) as part of the same logical mindsphere application, but backed by several cloudfoundry applications in the background (multiple buildpacks). That way you won't have issues with CORS, since both will be served under the same domain, but under different subpaths.

In the devops-demo project we do exactly this with a frontend angular served by the staticfile buildpack and the backend served by the nodejs webpack, all part of the same mindsphere application.