Skip to content

rgw: match CORS rules like Amazon S3 - #69190

Merged
AliMasarweh merged 6 commits into
ceph:mainfrom
RaminNietzsche:fix/rgw-cors-aws-rule-matching
Jun 22, 2026
Merged

AliMasarweh merged 6 commits into
ceph:mainfrom
RaminNietzsche:fix/rgw-cors-aws-rule-matching

Conversation

@RaminNietzsche

Copy link
Copy Markdown
Member

Amazon S3 evaluates bucket CORS configuration by selecting the first
CORSRule for which all of the following match the incoming request:

  • the request Origin matches an AllowedOrigin in the rule;
  • the request HTTP method (or Access-Control-Request-Method on preflight
    OPTIONS) matches an AllowedMethod in the rule;
  • on preflight, every header in Access-Control-Request-Headers matches an
    AllowedHeader in the rule.

RGW previously called host_name_rule(), which matched origin only, then
validated method and headers on that single rule. If two <CORSRule> elements
shared the same origin but allowed different methods (e.g. rule 1: GET, rule 2:
PUT), only the first rule was ever considered; a PUT preflight could fail
even when a later rule allowed it.

This change adds RGWCORSRule::matches() and
RGWCORSConfiguration::match_rule() to walk rules in configuration order and
return the first fully matching rule. generate_cors_headers() and
RGWOptionsCORS use match_rule() for bucket CORS; global CORS
(optional_global_cors) uses RGWCORSRule::matches() before applying
headers. host_name_rule() is unchanged for origin-only paths such as
erase_host_name_rule().

Unit tests in unittest_rgw_cors cover same-origin rules with different
methods and preflight header selection.

Testing

  • unittest_rgw_cors (new)
  • Manual: PutBucketCors with two rules, same AllowedOrigin, different
    AllowedMethod; verify OPTIONS preflight for the second method succeeds.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@RaminNietzsche
RaminNietzsche requested a review from a team as a code owner May 31, 2026 13:20
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

16 similar comments
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@RaminNietzsche

Copy link
Copy Markdown
Member Author

@cbodley Hi,

Could you please review this MR and share your feedback?

Thanks!

@cbodley
cbodley requested a review from AliMasarweh June 1, 2026 15:24

@AliMasarweh AliMasarweh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice job
I have a few comments

Comment thread src/rgw/rgw_cors.cc
bool RGWCORSRule::matches_method(const char *req_meth)
{
if (!req_meth || !*req_meth) {
return true;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should return false not true in case of a null or an empty string for method and add a logging info

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review.

I'll change this to return false and log at level 5, matching the old
validate_cors_rule_method() behavior.

Comment thread src/rgw/rgw_cors.cc
if (!req_meth || !*req_meth) {
return true;
}
const uint8_t flags = get_multi_cors_method_flags(req_meth);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to check if req_meth is wildcard or not first

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add an explicit check for AllowedMethod * before the flag lookup. Thanks!

Comment thread src/rgw/rgw_cors.cc
bool RGWCORSRule::matches_preflight_headers(const char *req_hdrs)
{
if (!req_hdrs || !*req_hdrs) {
return true;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should return false not true in case of a null or an empty string for header and add a logging info

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'm keeping return true here — if there's no
Access-Control-Request-Headers, we skip the header check (same as the old
validator). Returning false would break valid preflights.

To ensure proper output for debugging, I added the appropriate log in this section.

@AliMasarweh AliMasarweh Jun 8, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cbodley can you confirm that preflights requests with an empty header are valid?
or is that an issue and we shouldn't keep it?

Comment thread src/rgw/rgw_op.cc Outdated
Comment on lines +2028 to +2030
const char *req_meth_inner = s->info.env->get("HTTP_ACCESS_CONTROL_REQUEST_METHOD");
if (!req_meth_inner) {
req_meth_inner = s->info.method;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate code, I suggest we pass it to is_allowed_to_generate_rule_cors_header in the parameter arguments

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, leftover from the refactor — I'll read req_meth and req_hdrs once at
the top and pass them into the lambda. Thanks!

Comment thread src/rgw/rgw_op.cc Outdated

/* CORS 6.2.4. */
const char *req_hdrs = s->info.env->get("HTTP_ACCESS_CONTROL_REQUEST_HEADERS");
const char *req_hdrs_inner = s->info.env->get("HTTP_ACCESS_CONTROL_REQUEST_HEADERS");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also we should pass this one to the arguments

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same fix

Comment thread src/rgw/rgw_op.cc
return -ENOENT;
}

if (!validate_cors_rule_method(this, rule, req_meth)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should delete validate_cors_rule_method as it is not used anymore

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. I removed, it's dead code now that we use match_rule(). The logging
moved into matches_method(). Thanks!

Comment thread src/rgw/rgw_op.cc
return -ENOENT;
}

if (!validate_cors_rule_header(this, rule, req_hdrs)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should delete validate_cors_rule_header as it is not used anymore

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, removed validate_cors_rule_header() too.

Comment thread src/rgw/rgw_cors.cc
get_str_vec(req_hdrs, hdrs);
for (const auto& hdr : hdrs) {
if (!is_header_allowed(hdr.c_str(), hdr.length())) {
return false;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should log what header wasn't allowed

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point
added a log for disallowed headers in the loop, same as the
old validator. Thanks!

RaminNietzsche and others added 2 commits June 6, 2026 16:35
Select the first CORSRule whose AllowedOrigin, AllowedMethod, and (for
preflight) AllowedHeader all match the request. Previously host_name_rule
matched origin only, so a second rule with the same origin but different
methods was never used.

Add RGWCORSRule::matches() and RGWCORSConfiguration::match_rule(), wire
generate_cors_headers and RGWOptionsCORS to them (including global CORS), and
add unittest_rgw_cors.

Signed-off-by: ramin.najarbashi <[email protected]>
Co-authored-by: Cursor <[email protected]>
@RaminNietzsche
RaminNietzsche force-pushed the fix/rgw-cors-aws-rule-matching branch from ed68af8 to bbec695 Compare June 6, 2026 13:06
- matches_method: reject null/empty method; short-circuit RGW_CORS_ALL
- matches_preflight_headers: add logging for skip and disallowed headers
- generate_cors_headers: capture req_meth/req_hdrs in lambda
- remove unused validate_cors_rule_method/header helpers

Signed-off-by: ramin.najarbashi <[email protected]>

On branch fix/rgw-cors-aws-rule-matching
Changes to be committed:
	modified:   src/rgw/rgw_cors.cc
	modified:   src/rgw/rgw_op.cc
@AliMasarweh

Copy link
Copy Markdown
Member

ok to test

@AliMasarweh

Copy link
Copy Markdown
Member

Great job but I would like Casey to take a look at my question

@RaminNietzsche

Copy link
Copy Markdown
Member Author

Great job but I would like Casey to take a look at my question

Thank you for taking the time to review this request.

@RaminNietzsche

Copy link
Copy Markdown
Member Author

oops!

It's my mistake. I'm fixing the problem and will definitely run the testing process again before submitting.

FAILED: src/test/rgw/CMakeFiles/unittest_rgw_cors.dir/test_rgw_cors.cc.o 
/usr/local/bin/sccache /usr/bin/clang++-19 -DBOOST_ASIO_DISABLE_THREAD_KEYWORD_EXTENSION -DBOOST_ASIO_NO_TS_EXECUTORS -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_CONTEXT_DYN_LINK -DBOOST_CONTEXT_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_URL_DYN_LINK -DBOOST_URL_NO_LIB -DCLS_CLIENT_HIDE_IOCTX -DHAVE_CONFIG_H -DXXH_NO_INLINE_HINTS=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__CEPH__ -D__STDC_FORMAT_MACROS -D__linux__ -I/ceph/src/dmclock/support/src -I/ceph/src/rgw -I/ceph/src/rgw/driver/rados -I/ceph/src/rgw/services -I/usr/include/lua5.3 -I/ceph/src/BLAKE3/c -isystem /opt/ceph/include -isystem /ceph/build/src/include -isystem /ceph/src -isystem /ceph/build/include -isystem /ceph/src/jaegertracing/opentelemetry-cpp/api/include -isystem /ceph/src/jaegertracing/opentelemetry-cpp/exporters/jaeger/include -isystem /ceph/src/jaegertracing/opentelemetry-cpp/ext/include -isystem /ceph/src/jaegertracing/opentelemetry-cpp/sdk/include -isystem /ceph/src/xxHash -isystem /ceph/src/fmt/include -isystem /ceph/src/googletest/googlemock/include -isystem /ceph/src/googletest/googlemock -isystem /ceph/src/googletest/googletest/include -isystem /ceph/src/googletest/googletest -isystem /ceph/src/s3select/rapidjson/include -g -Werror -fPIE -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wall -fno-strict-aliasing -fsigned-char -Wtype-limits -Wignored-qualifiers -Wpointer-arith -Werror=format-security -Winit-self -Wno-unknown-pragmas -Wnon-virtual-dtor -Wno-ignored-qualifiers -Wsign-compare -ftemplate-depth-1024 -DBOOST_ALLOW_DEPRECATED_HEADERS -Wpessimizing-move -Wredundant-move -Wno-inconsistent-missing-override -Wno-mismatched-tags -Wno-unused-private-field -Wno-address-of-packed-member -Wno-unknown-warning-option -Wno-unused-function -Wno-unused-local-typedef -Wno-varargs -Wno-gnu-designator -Wno-missing-braces -Wno-parentheses -Wno-deprecated-register -Wno-vla-cxx-extension -DCEPH_DEBUG_MUTEX -D_GLIBCXX_ASSERTIONS -fdiagnostics-color=auto -Werror=vla -std=c++2b -MD -MT src/test/rgw/CMakeFiles/unittest_rgw_cors.dir/test_rgw_cors.cc.o -MF src/test/rgw/CMakeFiles/unittest_rgw_cors.dir/test_rgw_cors.cc.o.d -o src/test/rgw/CMakeFiles/unittest_rgw_cors.dir/test_rgw_cors.cc.o -c /ceph/src/test/rgw/test_rgw_cors.cc
In file included from /ceph/src/test/rgw/test_rgw_cors.cc:6:
/ceph/src/rgw/rgw_cors.h:172:3: error: use of undeclared identifier 'for_each_substr'
  172 |   for_each_substr(allowed_methods, ";,= \t", apply_flag);
      |   ^
1 error generated.
[2663/2986] Building CXX object src/rgw/CMakeFiles/rgw_common.dir/rgw_cksum.cc.o
[2664/2986] Building CXX object src/rgw/CMakeFiles/rgw_common.dir/rgw_bucket_layout.cc.o
[2665/2986] Building CXX object src/rgw/CMakeFiles/rgw_common.dir/rgw_asio_thread.cc.o
[2666/2986] Building CXX object src/rgw/CMakeFiles/rgw_common.dir/rgw_ldap.cc.o
[2667/2986] Building CXX object src/test/rgw/CMakeFiles/unittest_rgw_sync_trace.dir/test_rgw_sync_trace.cc.o
[2668/2986] Building CXX object src/rgw/CMakeFiles/rgw_common.dir/rgw_cors.cc.o
[2669/2986] Generating ../../../lib/cython_modules/lib.3/rbd.cpython-310-x86_64-linux-gnu.so
Compiling rbd_processed.pyx because it changed.

RaminNietzsche and others added 2 commits June 8, 2026 22:47
get_multi_cors_method_flags() calls ceph::for_each_substr(), but
rgw_cors.h did not include str_list.h. The CORS unit test includes
only this header, so the build failed with an undeclared identifier.
Qualify the call and add the missing include.

Signed-off-by: ramin.najarbashi <[email protected]>
unittest_rgw_cors used GMock::Main without global_init, so dout() in
RGWCORSRule::matches() dereferenced a null g_ceph_context and segfaulted
on the first test. Link unit-main like unittest_rgw_compression.

Assisted-by: Cursor:composer-2.5-fast
Signed-off-by: ramin.najarbashi <[email protected]>
Co-authored-by: Cursor <[email protected]>

@AliMasarweh AliMasarweh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked it up and found that Access-Control-Request-Headers is not mandotory in preflight requests
So the PR is good, I will mark it for testing and once they verify it we can merge it

@anrao19

anrao19 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

pr testing completed and approved by @ivancich , more details : https://tracker.ceph.com/issues/77460.
@RaminNietzsche, if no further testing is need. This pr can be merged

@AliMasarweh
AliMasarweh merged commit 2866fcf into ceph:main Jun 22, 2026
6 checks passed
batrick pushed a commit that referenced this pull request Aug 21, 2026
Select the first CORSRule whose AllowedOrigin, AllowedMethod, and (for
preflight) AllowedHeader all match the request. Previously host_name_rule
matched origin only, so a second rule with the same origin but different
methods was never used.

Add RGWCORSRule::matches() and RGWCORSConfiguration::match_rule(), wire
generate_cors_headers and RGWOptionsCORS to them (including global CORS), and
add unittest_rgw_cors.

Signed-off-by: ramin.najarbashi <[email protected]>
Co-authored-by: Cursor <[email protected]>
(cherry picked from commit cc1dcec)

Conflicts:
 src/rgw/rgw_op.cc
 Dropped optional_global_cors and validate_global_cors_request() because
 tentacle does not have global CORS. Applied match_rule() for bucket CORS
 only, with req_meth/req_hdrs captured in the lambda (as in main PR #69190
 review feedback).
mertsunacoglu pushed a commit to mertsunacoglu/ceph that referenced this pull request Aug 26, 2026
Select the first CORSRule whose AllowedOrigin, AllowedMethod, and (for
preflight) AllowedHeader all match the request. Previously host_name_rule
matched origin only, so a second rule with the same origin but different
methods was never used.

Add RGWCORSRule::matches() and RGWCORSConfiguration::match_rule(), wire
generate_cors_headers and RGWOptionsCORS to them (including global CORS), and
add unittest_rgw_cors.

Signed-off-by: ramin.najarbashi <[email protected]>
Co-authored-by: Cursor <[email protected]>
(cherry picked from commit cc1dcec)

Conflicts:
 src/rgw/rgw_op.cc
 Dropped optional_global_cors and validate_global_cors_request() because
 tentacle does not have global CORS. Applied match_rule() for bucket CORS
 only, with req_meth/req_hdrs captured in the lambda (as in main PR ceph#69190
 review feedback).
jhoblitt added a commit to jhoblitt/rgw-go that referenced this pull request Oct 16, 2026
…in matches

At v19.2.7 and v20.2.4, host_name_rule returns the first rule whose
AllowedOrigin matches, and both the preflight and generate_cors_headers
then refuse the request if that rule lacks its method or a requested
header, so a later rule for the same origin is never used. Amazon S3
takes the first rule that matches origin, method and requested headers.

main corrected it with match_rule in cc1dcecee08, from ceph/ceph#69190,
and the tentacle branch carries the backport 5f25f2bb0e2, from
ceph/ceph#69647, in no tag. The squid backport, ceph/ceph#69648, is
open, and the reef one, ceph/ceph#69649, was closed unmerged; trackers
77575, 77584 and 77586 follow them. rgw-go selects rules as main does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
batrick pushed a commit that referenced this pull request Oct 20, 2026
Select the first CORSRule whose AllowedOrigin, AllowedMethod, and (for
preflight) AllowedHeader all match the request. Previously host_name_rule
matched origin only, so a second rule with the same origin but different
methods was never used.

Add RGWCORSRule::matches() and RGWCORSConfiguration::match_rule(), wire
generate_cors_headers and RGWOptionsCORS to them (including global CORS), and
add unittest_rgw_cors.

Signed-off-by: ramin.najarbashi <[email protected]>
Co-authored-by: Cursor <[email protected]>
(cherry picked from commit cc1dcec)

Conflicts:
 src/rgw/rgw_op.cc
 Dropped optional_global_cors and validate_global_cors_request() because
 squid does not have global CORS. Applied match_rule() for bucket CORS
 only, with req_meth/req_hdrs captured in the lambda (as in main PR #69190
 review feedback).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants