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 feature policy.enables introspection of individual directives of the Feature Policy it is run on. As such, allowedFeatures()
method returns a subset of directives returned by features()
.