Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The allowedFeatures()
method of the FeaturePolicy
interface returns a list of directive names of all features allowed by the Permissions Policy. This enables introspection of individual directives of the Permissions Policy it is run on. As such, allowedFeatures()
method returns a subset of directives returned by features()
.