After adding
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,X-Auth-Token,Content-Type, Content-Length
these lines in elasticsearch.yml
on restart elasticsearch is throwing below error .
Caused by: while scanning a simple key
in 'reader', line 59, column 1:
http.cors.enabled : true
^
could not find expected ':'
in 'reader', line 60, column 1:
http.cors.allow-origin : "*"