內容簡介
正如在Google Developers博客上所指出的:
Feature Policy允許Web開發人員有選擇性地啟用、禁用和修改瀏覽器中某些API和Web功能的行為。 它就像是控制安全性的CSP,但它控制的是功能!
這些功能策略本身是開發人員和瀏覽器之間的小型啟用協議,可以幫助我們實現構建(和維護)高質量Web應用程序的目標。
此外掛提供了一個API來發送 Feature-Policy 響應標頭,以及一個管理介面來決定每個功能應用哪種策略。
由於Feature Policy規範仍在發展中並且處於早期階段,因此插件反映了這一點,目前是一個實驗性原型,以展示Feature Policy如何在WordPress中使用。
你知道嗎?
Feature Policy規範將與新的Reporting API 規範整合。也有一個WordPress外掛程式專門支援該規範。
外掛標籤
開發者團隊
原文外掛簡介
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.
Did you know?
The Feature Policy specification will integrate with the new Reporting API specification. There is a WordPress plugin for that specification as well.
