Commit Message: cors: refactor loop to if
Additional Description:
PR #36079 updated the policies of the CORS filter to be a vector of references that must exist.
This followup changes the original for-loop to an if statement that returns the first element, if exists.
As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.
Please mark your PR as ready when you want it to be reviewed!
:cat:
Caused by: https://github.com/envoyproxy/envoy/pull/37257 was opened by adisuissa.
see: [more](https://github.com/envoyproxy/envoy/pull/37257), [trace](https://prod.repokitteh.app/traces/ui/envoyproxy/envoy/31d84c10-a6f2-11ef-9611-b5e6a9b4ebe8).
Commit Message: cors: refactor loop to if Additional Description: PR #36079 updated the policies of the CORS filter to be a vector of references that must exist. This followup changes the original for-loop to an if statement that returns the first element, if exists.
Risk Level: low Testing: N/A Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A