implement external rest service. having CORS issues