Setting a proxy in tomcat, that will bypass the CORS problem using Rest API