Skip to content

Commit

Permalink
Update 02-wordpress-best-practices.md
Browse files Browse the repository at this point in the history
Permissions-Policy requires a comma between features, see [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy#examples)
  • Loading branch information
kmwalsh authored Jan 7, 2025
1 parent 7751b26 commit 89a6201
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function additional_securityheaders( $headers ) {
$headers['Referrer-Policy'] = 'no-referrer-when-downgrade'; //This is the default value, the same as if it were not set.
$headers['X-Content-Type-Options'] = 'nosniff';
$headers['X-XSS-Protection'] = '1; mode=block';
$headers['Permissions-Policy'] = 'geolocation=(self "https://example.com") microphone=() camera=()';
$headers['Permissions-Policy'] = 'geolocation=(self "https://example.com"), microphone=(), camera=()';
$headers['Content-Security-Policy'] = "script-src 'self'";
$headers['X-Frame-Options'] = 'SAMEORIGIN';
}
Expand Down

0 comments on commit 89a6201

Please sign in to comment.