Merge pull request #10806 from snipe/fixes/removed_experimental_content_policies

Removed experimental feature policies
This commit is contained in:
snipe 2022-03-08 20:32:39 -08:00 committed by GitHub
commit 1b3631d57d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,30 +42,15 @@ class SecurityHeaders
// - https://github.com/w3c/webappsec-feature-policy/issues/189 // - https://github.com/w3c/webappsec-feature-policy/issues/189
$feature_policy[] = "accelerometer 'none'"; $feature_policy[] = "accelerometer 'none'";
$feature_policy[] = "ambient-light-sensor 'none'";
$feature_policy[] = "animations 'none'";
$feature_policy[] = "autoplay 'none'"; $feature_policy[] = "autoplay 'none'";
$feature_policy[] = "battery 'none'";
$feature_policy[] = "camera 'none'"; $feature_policy[] = "camera 'none'";
$feature_policy[] = "display-capture 'none'"; $feature_policy[] = "display-capture 'none'";
$feature_policy[] = "document-domain 'none'"; $feature_policy[] = "document-domain 'none'";
$feature_policy[] = "encrypted-media 'none'"; $feature_policy[] = "encrypted-media 'none'";
$feature_policy[] = "fullscreen 'none'"; $feature_policy[] = "fullscreen 'none'";
$feature_policy[] = "geolocation 'none'"; $feature_policy[] = "geolocation 'none'";
$feature_policy[] = "gyroscope 'none'";
$feature_policy[] = "legacy-image-formats 'none'";
$feature_policy[] = "magnetometer 'none'";
$feature_policy[] = "microphone 'none'";
$feature_policy[] = "midi 'none'";
$feature_policy[] = "oversized-images 'none'";
$feature_policy[] = "payment 'none'";
$feature_policy[] = "picture-in-picture 'none'";
$feature_policy[] = "publickey-credentials 'none'";
$feature_policy[] = "sync-xhr 'none'"; $feature_policy[] = "sync-xhr 'none'";
$feature_policy[] = "unsized-media 'none'";
$feature_policy[] = "usb 'none'"; $feature_policy[] = "usb 'none'";
$feature_policy[] = "vibrate 'none'";
$feature_policy[] = "wake-lock 'none'";
$feature_policy[] = "xr-spatial-tracking 'none'"; $feature_policy[] = "xr-spatial-tracking 'none'";
$feature_policy = implode(';', $feature_policy); $feature_policy = implode(';', $feature_policy);