Feature-Policy (Deprecated) (Feature-Policy)
Why Feature-Policy Is Important
Feature-Policy is deprecated in favor of Permissions-Policy. If your server still sends a Feature-Policy header, it will work in older browsers but modern browsers now look for Permissions-Policy instead. Sending the old header is not harmful but should be updated to the new format.
The functionality is the same - controlling access to browser APIs like camera, microphone, geolocation, and more. The change was primarily syntactic, aligning with the structured headers specification. During the transition period, some security scanners may report the absence of Feature-Policy even though Permissions-Policy is set.
If you are configuring security headers for the first time, use Permissions-Policy directly. If you have existing Feature-Policy headers, keep them for backward compatibility but add the Permissions-Policy equivalent alongside them.
How to Test for Feature-Policy
A security audit checks for both Feature-Policy and Permissions-Policy headers. Migrate from Feature-Policy to Permissions-Policy syntax. Keeping both temporarily is fine for backward compatibility.