// Get the FeaturePolicy object
const featurePolicy = document.featurePolicy;
// Retrieve the list of all supported Permissions Policy directives
const supportedDirectives = featurePolicy.features();
// Print out each directive into the console
for (const directive of supportedDirectives) {
console.log(directive);
}FeaturePolicy: features() method / notebook
FeaturePolicy: features() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.