Skip to content

[7.x] Add ability to specify CORS accepted origins (#84316)#85570

Merged
mshustov merged 1 commit intoelastic:7.xfrom
mshustov:backport/7.x/pr-84316
Dec 10, 2020
Merged

[7.x] Add ability to specify CORS accepted origins (#84316)#85570
mshustov merged 1 commit intoelastic:7.xfrom
mshustov:backport/7.x/pr-84316

Conversation

@mshustov
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

* 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 <lgregorydev@gmail.com>

* Update docs/setup/settings.asciidoc

Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>

* allow kbn-xsrf headers to be set on CORS request

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
# Conflicts:
#	src/core/server/config/deprecation/core_deprecations.ts
#	x-pack/scripts/functional_tests.js
@mshustov mshustov added the backport This PR is a backport of another PR label Dec 10, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Distributable file count

id before after diff
default 47340 48100 +760

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@mshustov mshustov merged commit ca97dcd into elastic:7.x Dec 10, 2020
@mshustov mshustov deleted the backport/7.x/pr-84316 branch December 10, 2020 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants