-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to specify CORS accepted origins #84316
Changes from all commits
cc0487a
8de37ff
fa1c924
29bfcae
e96ecea
f2ebd59
e17fbdf
eaf7782
f1659ec
0d7590c
fc7415b
03903c5
e11ef00
d5c8507
466bd8b
569baf4
8f57ec8
bcebb53
e9aa9ff
9884a2c
3b8a509
8d6ea81
d0956f8
3e19081
30b45aa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -450,6 +450,15 @@ deprecation warning at startup. This setting cannot end in a slash (`/`). | |
| [[server-compression]] `server.compression.enabled:` | ||
| Set to `false` to disable HTTP compression for all responses. *Default: `true`* | ||
|
||
| `server.cors.enabled:` | ||
| experimental[] Set to `true` to allow cross-origin API calls. *Default:* `false` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we're marking the old There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FWIW, the old There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that's correct. from #16714 (comment)
We can mark it as GA, but it means that we won't be able to introduce any breaking changes if needed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gotcha - I don't have any objections to marking as experimental or beta then |
||
|
||
| `server.cors.credentials:` | ||
| experimental[] Set to `true` to allow browser code to access response body whenever request performed with user credentials. *Default:* `false` | ||
|
||
| `server.cors.origin:` | ||
| 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:* "*" | ||
|
||
| `server.compression.referrerWhitelist:` | ||
| Specifies an array of trusted hostnames, such as the {kib} host, or a reverse | ||
proxy sitting in front of it. This determines whether HTTP compression may be used for responses, based on the request `Referer` header. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kobelb We should start with marking it as
experimental
, I supposeThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're marking the old
server.cors
setting as deprecated, then I'm not sure we should replace it with an experimental setting. Is there a reason to believe this won't be stable enough to mark as GA?