But still I'm getting this error Failed to load http://localhost:9200/user/_search?pretty=true&size=100: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://00fe7e44.ngrok.io' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I did try this but did not work. I think my elasticsearch.yml file is not picking up. Any way I can make it use elasticsearch.yml for configuration. Looks like my elasticsearch is running on default settings irrespective of my yml file content.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.