Trying to enter the correct setting in elasticsearch.yml.
Although the first block below added to elasticsearch.yml does what it
wants, it disables CORS security altogether.
Am trying to enable only localhost. The ES documentation is not clear how
to define enabled domain(s) only
This was resolved by including the "http" string in the "allow-origin"
command(Thx for testing, Clinton). The correct entry is as follows. Note
that besides the required "http" string, the documentation and example only
supports SSL or without SSL, not both. In the corrected command below, I
specify "no SSL"
Would require testing, but I assume repeating the same command with "http"
and then "https" might cover both situations.
Looking at the string after the fact, now I understand and see the RegEx
describing the full URL (http://localhost:anyport/)
On Monday, December 8, 2014 11:44:16 AM UTC-8, Tony Su wrote:
Trying to enter the correct setting in elasticsearch.yml.
Although the first block below added to elasticsearch.yml does what it
wants, it disables CORS security altogether.
Am trying to enable only localhost. The ES documentation is not clear how
to define enabled domain(s) only
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.