WordPress plugin for managing feature policy headers.
As noted on the Google Developers blog:
Feature Policy allows web developers to selectively enable, disable, and modify the behavior of certain APIs and web features in the browser. It's like CSP but instead of controlling security, it controls features!
The feature policies themselves are little opt-in agreements between developer and browser that can help foster our goals of building (and maintaining) high quality web apps.
This plugin provides an API for sending the Feature-Policy
response headers, as well as an admin interface for deciding which policy to apply for each feature.
As the Feature Policy specification is still evolving and at an early stage, the plugin reflects that and is currently an experimental prototype, to demonstrate how Feature Policy can be used in WordPress.
The Feature Policy specification will integrate with the new Reporting API specification. There is a WordPress plugin for that specification as well.
- WordPress >= 4.7
- PHP >= 5.6
Any kind of contributions to Feature Policy are welcome. Please read the contributing guidelines to get started.