mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Document http.cors-settings
This commit is contained in:
parent
84770c7d33
commit
cd8ed388d9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user