A mechanism to selectively enable and disable browser features and APIs
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore Enable Travis to auto-build HTML output Jun 19, 2018
LICENSE.md Adding baseline LICENSE.md Jul 5, 2016
README.md Remove 'vibrate', add link to features.md Aug 14, 2018
deploy.sh Add executable bit to deploy.sh Jun 19, 2018
deploy_key.enc Enable Travis to auto-build HTML output Jun 19, 2018
features.md Remove vibrate feature Jul 25, 2018
index.bs Merge almost duplicate parsing algorithms Sep 18, 2018
integration.md Remove feature name from integration doc Jan 23, 2018
tidyconfig.txt tidy config Apr 26, 2016
w3c.json Adding baseline w3c.json Jul 5, 2016


Feature Policy

A web platform API which gives a website the ability to allow and deny the use of browser features in its own frame, and in iframes that it embeds. Examples of features that could be controlled by feature policy include:

  • getUserMedia (Camera, Speakers and Microphone)
  • Fullscreen
  • Geolocation
  • MIDI
  • Payments
  • Synchronous XHR
  • Synchronous scripts
  • Lazyload
  • ...

The spec is hosted on this repo, at https://wicg.github.io/feature-policy/

For more explanation, use cases, examples, etc., please refer to the explainer document.

Questions, suggestions? Please open an issue or send a pull request!