In order to make the API working between BE and FE we need to add crossorigin as in the photo below.
For now is localhost:4200 because that's the route of the localhost frontend, but later when the frontend will be uploaded on cloud, it will be changed. Maybe it can be done dynamically? In the frontend there's such a thing, when you build it for production, it changes the route of the api call.
In order to make the API working between BE and FE we need to add crossorigin as in the photo below. For now is localhost:4200 because that's the route of the localhost frontend, but later when the frontend will be uploaded on cloud, it will be changed. Maybe it can be done dynamically? In the frontend there's such a thing, when you build it for production, it changes the route of the api call.