- All of the commands below are done through a terminal with at least JDK 6 installed
- wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.2.tar.gz
- tar -zxvf elasticsearch-1.7.2.tar.gz
- cd elasticsearch-1.7.2
- bin/elasticsearch
- Navigate to elasticsearch-1.7.2/config/elasticsearch.yml
- Add the following lines to the file:
- http.jsonp.enable: true
- http.cors.enabled: true
- http.cors.allow-origin: "*"
- http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
- http.cors.allow-headers: "X-Requested-With, Content-Type, Content-Length, X-User"