Document http.cors-settings

This commit is contained in:
Alex Brasetvik 2013-12-06 12:37:48 +01:00 committed by Clinton Gormley
parent 84770c7d33
commit cd8ed388d9

View File

@ -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