Elasticvue usage
Before using elasticvue you might have to enable CORS in your elasticsearch cluster.
Cluster configuration
You have to enable CORS if you use elasticvue via docker or the web app, otherwise the browser will reject all requests.
Edit your config file (usually elasticsearch.yml) and enable CORS based on how you run elasticvue:
Edit your config file (usually elasticsearch.yml) and enable CORS based on how you run elasticvue:
Restart your cluster when you are done and you should be able to connect.
Running elasticsearch in docker
If your elasticsearch cluster is running inside docker then you probably do not use theelasticsearch.yml config file.
In this case you can configure your cluster by passing the settings via environment variables, for example:
In this case you can configure your cluster by passing the settings via environment variables, for example:
docker run -e "http.cors.enabled=true" \
-e "http.cors.allow-origin=http://localhost:8080" \
-e "discovery.type=single-node" \
-p 9200:9200 \
-p 9300:9300 \
docker.elastic.co/elasticsearch/elasticsearch:8.12.2
Need help?
Please open an issue on github if you need help connecting to your cluster.