'nosniff', 'X-Frame-Options' => 'SAMEORIGIN', 'Referrer-Policy' => 'strict-origin-when-cross-origin', 'Permissions-Policy' => 'camera=(), microphone=(), geolocation=()', ] as $header => $value) { if (! $response->headers->has($header)) { $response->headers->set($header, $value); } } return $response; } }