You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(core): add additive CORS configuration fields (#2941)
### Proposed Changes
Add `additionalheaders`, `additionalmethods`, and
`additionalexposedheaders`
fields to CORS config, allowing operators to append custom values
without
replacing the entire default list.
- Add mergeStringSlices() for case-sensitive method deduplication
- Add mergeHeaderSlices() for case-insensitive header deduplication (RFC
7230)
- Add Effective*() methods to compute merged values at runtime
- Log effective CORS values at startup for operator visibility
- Add unit tests for merge functions and Effective* methods
- Update docs/Configuring.md with CORS configuration section
Operators can now add custom headers without copying all defaults:
```yaml
server:
cors:
additionalheaders:
- X-Custom-Header
```
Backwards compatible: existing configs work unchanged.
### Checklist
- [ ] I have added or updated unit tests
- [ ] I have added or updated integration tests (if appropriate)
- [ ] I have added or updated documentation
### Testing Instructions
0 commit comments