ElasticSearch 1.4.0 版以上預設停用 CORS
$ vi/data/elasticsearch.yml
http.cors.enabled: true
$ docker run -d -p 9200:9200 -p 9300:9300 -v:/data dockerfile/elasticsearch /elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch.yml
References :
dockerfile/elasticsearch Repository | Docker Hub Registry - Repositories of Docker Images
沒有留言:
張貼留言