Skip to content

Update rack-cors to 2.x branch

Matthias Käppler requested to merge 422672-rack-cors-2 into master

What does this MR do and why?

Update rack-cors to 2.x branch. This brings in Ruby 3.1/3.2 upstream build verification.

Changes:

  • Use Rack::Utils::HeaderHash when Rack 2.x is detected
  • Refactored codebase
  • Support declaring custom protocols in origin
  • Lowercased header names as defined by Rack spec
  • Fix issue with duplicate headers because of header name case

Links:

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #422672 (closed)

Edited by Matthias Käppler

Merge request reports

Loading