File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1940,6 +1940,11 @@ private function addHTTPSecurityHeaders()
1940
1940
if (!empty ($ setting )) {
1941
1941
header ('Referrer-Policy: ' .$ setting );
1942
1942
}
1943
+ // Permissions-Policy
1944
+ $ setting = api_get_configuration_value ('security_permissions_policy ' );
1945
+ if (!empty ($ setting )) {
1946
+ header ('Permissions-Policy: ' .$ setting );
1947
+ }
1943
1948
// end of HTTP headers security block
1944
1949
}
1945
1950
Original file line number Diff line number Diff line change 635
635
// More info: https://www.chromium.org/updates/same-site
636
636
// Also: https://developers.google.com/search/blog/2020/01/get-ready-for-new-samesitenone-secure
637
637
//$_configuration['security_session_cookie_samesite_none'] = false;
638
+ //
639
+ // Enable Permissions-Policy header
640
+ // More info: https://scotthelme.co.uk/goodbye-feature-policy-and-hello-permissions-policy/
641
+ // and also: https://scotthelme.co.uk/a-new-security-header-feature-policy/
642
+ //$_configuration['security_permissions_policy'] = 'geolocation=(self "https://example.com"), microphone=()';
638
643
// ------ HTTP headers security section ends here
639
644
//
640
645
// ------ Survey configuration settings
You can’t perform that action at this time.
0 commit comments