Browse Source

Document http.cors-settings

Alex Brasetvik 12 years ago
parent
commit
cd8ed388d9
1 changed files with 19 additions and 0 deletions
  1. 19 0
      docs/reference/modules/http.asciidoc

+ 19 - 0
docs/reference/modules/http.asciidoc

@@ -36,6 +36,25 @@ Accept-Encoding). Defaults to `false`.
 
 |`http.compression_level` |Defines the compression level to use.
 Defaults to `6`.
+
+|`http.cors.enabled` |Enable or disable cross-origin resource sharing,
+i.e. whether a browser on another origin can do requests to
+Elasticsearch. Defaults to `true`.
+
+|`http.cors.allow-origin` |Which origins to allow. Defaults to `*`,
+i.e. any origin.
+
+|`http.cors.max-age` |Browsers send a "preflight" OPTIONS-request to
+determine CORS settings. `max-age` defines how long the result should
+be cached for. Defaults to `1728000` (20 days)
+
+|`http.cors.allow-methods` |Which methods to allow. Defaults to
+`OPTIONS, HEAD, GET, POST, PUT, DELETE`.
+
+|`http.cors.allow-headers` |Which headers to allow. Defaults to
+`X-Requested-With, Content-Type, Content-Length`.
+
+
 |=======================================================================
 
 It also uses the common