Bypassing CORS policy in elasticsearch

Hi Team,
Kindly let me know how to divert CORS policy error in elastic search, as I need to integrate my custom app with elastic search.