-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
feat(cors): Support private network access #11523
Conversation
crossing-origin prelight request. A new parameter `private_network` is added to determined whether the `Access-Control-Allow-Private-Network` header should be carried in the response headers with `true` as the value.
a78e7fe
to
c9ae4cb
Compare
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.
New fields need to be added to the removed fields to support mixed-version clusters. It is necessary to raise a PR to https://github.com/Kong/docs.konghq.com to introduce this feature as well.
@@ -35,11 +35,11 @@ end | |||
local function get_plugin(node_id, node_version, name) | |||
local res, err = cluster_client({ id = node_id, version = node_version }) | |||
assert.is_nil(err) | |||
assert.is_table(res and res.config and res.config.plugins, | |||
assert.is_table(res and res.config_table and res.config_table.plugins, |
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.
The Access-Control-Request-Private-Network header in crossing-origin pre-light requests is supported through adding a new parameter private_network which determines whether the Access-Control-Allow-Private-Network header should be carried in the response headers with true as the value. FTI-5258
…12599) * feat(cors): Support private network access (#11523) The Access-Control-Request-Private-Network header in crossing-origin pre-light requests is supported through adding a new parameter private_network which determines whether the Access-Control-Allow-Private-Network header should be carried in the response headers with true as the value. * change version number in removed_fileds and spce for compatibility FTI-5258
Summary
The
Access-Control-Request-Private-Network
header in crossing-origin pre-light requests is supported through adding a new parameterprivate_network
which determines whether theAccess-Control-Allow-Private-Network
header should be carried in the response headers withtrue
as the value.Checklist
CHANGELOG/unreleased/kong
or addingskip-changelog
label on PR if unnecessary. README.mdFull changelog
Issue reference
FTI-5258