Fixed CORS issues for search