Even though I have provided CORS configuration in elasticsearch.yml file as:
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.