Remove deprecated headers and stale policy features - #1728
Remove deprecated headers and stale policy features #1728mm-kevcenteno wants to merge 2 commits into
Conversation
Feature-Policy was superseded by Permissions-Policy. X-XSS-Protection is non-standard, deprecated, and can itself introduce XSS vulnerabilities in otherwise safe pages; our Content-Security-Policy covers what it was for. Also drop the Permissions-Policy features that no browser recognizes, verified against Chrome 149 and 150: ambient-light-sensor, battery, document-domain, execution-while-not-rendered, execution-while-out-of-viewport, and speaker-selection. Chrome reported each of these as an unrecognized feature, so they never had any effect.
sync-xhr was denied only via Feature-Policy and had no Permissions-Policy counterpart, so removing that header dropped the denial entirely. Chrome still enforces Feature-Policy, and sync-xhr defaults to an allowlist of *, so this was blocking synchronous XHR in the top document and in every cross-origin frame.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe header configuration replaces ChangesSecurity header policy
Estimated code review effort: 2 (Simple) | ~10 minutes Mergeability Score: ⚪ Minimal · up to This PR makes a localized cleanup to deprecated headers and stale policy features in one configuration file; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit