Add support for CORS in AJAX.