]> source.dussan.org Git - sonarqube.git/commitdiff
Fix compatibility of ES 1.4 with KOPF
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 18 Dec 2014 17:39:02 +0000 (18:39 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 18 Dec 2014 17:39:28 +0000 (18:39 +0100)
server/sonar-search/src/main/java/org/sonar/search/SearchSettings.java

index efca92943a5e2a4e6f5043e6f3c25915b4075b51..ede9e33358c4dc0f881c96827960184196c54f09 100644 (file)
@@ -137,7 +137,9 @@ class SearchSettings {
       builder.put("http.enabled", false);
     } else {
       LOGGER.warn(String.format(
-        "Elasticsearch HTTP connector is enabled on port %d. MUST NOT BE USED INTO PRODUCTION", httpPort));
+        "Elasticsearch HTTP connector is enabled on port %d. MUST NOT BE USED FOR PRODUCTION", httpPort));
+      // see https://github.com/lmenezes/elasticsearch-kopf/issues/195
+      builder.put("http.cors.enabled", true);
       builder.put("http.enabled", true);
       builder.put("http.host", "127.0.0.1");
       builder.put("http.port", httpPort);