Update rack-cors to 2.x branch
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:
- https://github.com/cyu/rack-cors/blob/master/CHANGELOG.md
- https://my.diffend.io/gems/rack-cors/1.1.1/2.0.1
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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #422672 (closed)
Edited by Matthias Käppler