Added support for CORS in the servlet