FeaturePolicy

class OCP\AppFramework\Http\FeaturePolicy
Class FeaturePolicy is a simple helper which allows applications to
modify the Feature-Policy sent by Nextcloud. Per default only autoplay is allowed
from the same domain and full screen as well from the same domain.
Even if a value gets modified above defaults will still get appended. Please
notice that Nextcloud ships already with sensible defaults and those policies
should require no modification at all for most use-cases.
Source:lib/public/AppFramework/Http/FeaturePolicy.php#40
Parent:OCP\AppFramework\Http\EmptyFeaturePolicy

Properties

protected static property OCP\AppFramework\Http\FeaturePolicy::$autoplayDomains
Source:lib/public/AppFramework/Http/FeaturePolicy.php#41
protected static property OCP\AppFramework\Http\FeaturePolicy::$cameraDomains
Source:lib/public/AppFramework/Http/FeaturePolicy.php#46
Type:string[] of allowed domains that can access the camera
protected static property OCP\AppFramework\Http\FeaturePolicy::$fullscreenDomains
Source:lib/public/AppFramework/Http/FeaturePolicy.php#48
protected static property OCP\AppFramework\Http\FeaturePolicy::$geolocationDomains
Source:lib/public/AppFramework/Http/FeaturePolicy.php#53
Type:string[] of allowed domains that can use the geolocation of the device
protected static property OCP\AppFramework\Http\FeaturePolicy::$microphoneDomains
Source:lib/public/AppFramework/Http/FeaturePolicy.php#56
Type:string[] of allowed domains that can use the microphone
protected static property OCP\AppFramework\Http\FeaturePolicy::$paymentDomains
Source:lib/public/AppFramework/Http/FeaturePolicy.php#59
Type:string[] of allowed domains that can use the payment API