Skip to content

Commit c037ad8

Browse files
committed
fixup! Add feature policy manager and events
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
1 parent 069b76b commit c037ad8

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

lib/public/AppFramework/Http/FeaturePolicy.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,19 @@ class FeaturePolicy extends EmptyFeaturePolicy {
4141
'\'self\'',
4242
];
4343

44+
/** @var string[] of allowed domains that can access the camera */
45+
protected $cameraDomains = [];
46+
4447
protected $fullscreenDomains = [
4548
'\'self\'',
4649
];
50+
51+
/** @var string[] of allowed domains that can use the geolocation of the device */
52+
protected $geolocationDomains = [];
53+
54+
/** @var string[] of allowed domains that can use the microphone */
55+
protected $microphoneDomains = [];
56+
57+
/** @var string[] of allowed domains that can use the payment API */
58+
protected $paymentDomains = [];
4759
}

0 commit comments

Comments
 (0)