Added support for CORS requests.