Implemented CORS in http handler