You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ability to specify CORS accepted origins (#84316)
* add settings
* update abab package to version with types
* add test case for CORS
* add tests for cors config
* fix jest tests
* add deprecation message
* tweak deprecation
* make test runable on Cloud
* add docs
* fix type error
* add test to throw on invalid URL
* address comments
* Update src/core/server/http/http_config.test.ts
Co-authored-by: Larry Gregory <[email protected]>
* Update docs/setup/settings.asciidoc
Co-authored-by: Brandon Kobel <[email protected]>
* allow kbn-xsrf headers to be set on CORS request
Co-authored-by: Larry Gregory <[email protected]>
Co-authored-by: Brandon Kobel <[email protected]>
| Set to `false` to disable HTTP compression for all responses. *Default: `true`*
452
452
453
+
| `server.cors.enabled:`
454
+
| experimental[] Set to `true` to allow cross-origin API calls. *Default:* `false`
455
+
456
+
| `server.cors.credentials:`
457
+
| experimental[] Set to `true` to allow browser code to access response body whenever request performed with user credentials. *Default:* `false`
458
+
459
+
| `server.cors.origin:`
460
+
| experimental[] List of origins permitted to access resources. You must specify explicit hostnames and not use `*` for `server.cors.origin` when `server.cors.credentials: true`. *Default:* "*"
461
+
453
462
| `server.compression.referrerWhitelist:`
454
463
| Specifies an array of trusted hostnames, such as the {kib} host, or a reverse
455
464
proxy sitting in front of it. This determines whether HTTP compression may be used for responses, based on the request `Referer` header.
0 commit comments