// First, get the Permissions Policy object
const featurePolicy = document.featurePolicy;
// Then query feature for specific
const allowed = featurePolicy.allowedFeatures();
for (const directive of allowed) {
console.log(directive);
}FeaturePolicy: allowedFeatures() method / notebook
FeaturePolicy: allowedFeatures() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.