Allow CORS against elasticsearch API
Since we do fine grained access control to the API via a proxy that limits what requests can be made from anywhere go ahead and allow CORS requests from anywhere as they won't be able to write data anyways. This is useful so that you can test a new version of $tool hosted locally against the actual cluster or for admins to run admin tools hosted locally against the cluster. Change-Id: I774d0ad0b246315794ab387acc39c41c7cfac3cd Depends-On: I0aa8d5167c770c1024b7596da582d6cc089b1b47
This commit is contained in:
parent
7df7983538
commit
723a574ef8
@ -32,6 +32,8 @@ class openstack_project::elasticsearch_node (
|
|||||||
'discovery.zen.minimum_master_nodes' => '4',
|
'discovery.zen.minimum_master_nodes' => '4',
|
||||||
'discovery.zen.ping.multicast.enabled' => false,
|
'discovery.zen.ping.multicast.enabled' => false,
|
||||||
'discovery.zen.ping.unicast.hosts' => $discover_nodes,
|
'discovery.zen.ping.unicast.hosts' => $discover_nodes,
|
||||||
|
'http.cors.enabled' => true,
|
||||||
|
'http.cors.allow-origin' => "'*'", # lint:ignore:double_quoted_strings
|
||||||
},
|
},
|
||||||
heap_size => $heap_size,
|
heap_size => $heap_size,
|
||||||
version => '1.7.3',
|
version => '1.7.3',
|
||||||
|
Loading…
Reference in New Issue
Block a user