To resolve the CORS error in Angular 10, I have created a proxyconfig.json file and configured it in the angular.json file. It's working fine in local, but it's not working with the non-local environments. Could someone please help me with this?
To resolve this you need to set proxy server on the same host as FE app, but by default, Angular doesn't support any proxy besides local. Under the hood, Angular uses this: https://www.npmjs.com/package/http-proxy-middleware.
P.S. Wish you to find some other ways to do that as it describes in comments above :)