This is a backport PR for branch 40-x-y
#50131: fix: validate response header names and values before AddHeader
Merged
Backport of #50123
See that PR for details.
Notes: Fixed an issue where invalid characters in custom protocol or webRequest response header values were not rejected.
Backport Information
Original PR Author
MarshallOfSoundOriginal PR Status
Merged
Original PR Merged At
Mar 8, 2026, 5:40:48 PM
Original PR Link
View on GitHubSemver Impact
Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.
Semantic Versioning helps users understand the impact of updates:
- Major (X.y.z): Breaking changes that may require code modifications
- Minor (x.Y.z): New features that maintain backward compatibility
- Patch (x.y.Z): Bug fixes that don't change the API
- None: Changes that don't affect using facing parts of Electron