// First, get the FeaturePolicy object
const featurePolicy = document.featurePolicy;
// Query for specific feature
const allowlist = featurePolicy.getAllowlistForFeature("camera");
for (const origin of allowlist) {
console.log(origin);
}FeaturePolicy: getAllowlistForFeature() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.