i really need to create my own proxy service in java to handle CORS issue for any server/service. I was using cors-anywhere node js based service to solve my issue.
https://github.com/Rob--W/cors-anywhere
But , now i need to make this service in java. The idea is that my team members will ping this service and provide their server url as a parameter and i need to act as a middleman to fetch the response and reroute it to my teammates along with the 'no-access-allow-origin' response header.