kamerazugriff wieder möglich + anleitung zum erlauben des kamerazugriffs

This commit is contained in:
Codex Agent
2025-12-20 17:43:40 +01:00
parent 80985828d8
commit d4c7d3f93a
5 changed files with 113 additions and 377 deletions

View File

@@ -13,11 +13,15 @@ class ResponseSecurityHeaders
/** @var Response $response */
$response = $next($request);
$permissionsPolicy = $request->is('event', 'e/*', 'g/*', 'share/*')
? 'camera=(self), microphone=(), geolocation=()'
: 'camera=(), microphone=(), geolocation=()';
$headers = [
'Referrer-Policy' => 'strict-origin-when-cross-origin',
'X-Content-Type-Options' => 'nosniff',
'X-Frame-Options' => 'SAMEORIGIN',
'Permissions-Policy' => 'camera=(), microphone=(), geolocation=()',
'Permissions-Policy' => $permissionsPolicy,
];
foreach ($headers as $name => $value) {