Calling third party REST api call form clinet side on AEM (e.g. localhost:4052 )
Let's say we are calling an a third party API directly from React using axios/fetch. (localhost:9000)
To handle CORS issues we set proxy in packege.json/webpack.config, and "passing relative URL" to axios/fetch(THIS WORKS!!)
NOW we deployed the same in AEM and hosting on localhost:4502.(THIS DOESN'T WORK)
I understand that now react build is deployed and proxy will not work in production, but I am looking for a way to handle it once it's deployed and served on AEM.
