Updating search API to use prefix method for searching.
Enabling CORS.