mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
CORS: Allowed to configure allow-credentials header to work via SSL
This adds support to return the "Access-Control-Allow-Credentials" header if needed, so CORS will work flawlessly with authenticated applications. Closes #6380
This commit is contained in:
parent
657b954528
commit
35e67c84fa
5 changed files with 30 additions and 7 deletions
|
@ -57,6 +57,10 @@ be cached for. Defaults to `1728000` (20 days)
|
|||
|`http.cors.allow-headers` |Which headers to allow. Defaults to
|
||||
`X-Requested-With, Content-Type, Content-Length`.
|
||||
|
||||
|`http.cors.allow-credentials` | Whether the `Access-Control-Allow-Credentials`
|
||||
header should be returned. Note: This header is only returned, when the setting is
|
||||
set to `true`. Defaults to `false`
|
||||
|
||||
|
||||
|=======================================================================
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue