fix(cors): use explicit header allowlist fallback instead of wildcard#4965
Conversation
|
🚅 Deployed to the rivet-pr-4965 environment in rivet-frontend
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Code Review: fix(cors): use explicit header allowlist fallback instead of wildcardSummaryThis PR makes two targeted changes:
Both changes are correct and address a real issue. Security: Wildcard Fallback Fix (Positive)The original code used // Before
const requestHeaders =
c.req.header("access-control-request-headers") || "*";Returning
|

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: