kamerazugriff wieder möglich + anleitung zum erlauben des kamerazugriffs
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user