I have created a HTTP server with java that receives HTTP request from my Ionic client app. It was found that there is some CORS error when receiving responses from the server.