Added CORS support for search.