I saw guys give you advice how to set up the proxy, actually in your case after setting up the proxy, please set your API_URL to be http://localhost:4200/api, it's the proxy who will turn it into http://localhost:8080/myApp, not you, that's why you got CORS problem again, because you've already set up the proxy but actually you haven't used it with a wrong API_URL,that's it. Good luck Bro!