getContent(), true)['csp-report'] ?? null; if (is_array($rapport)) { Log::warning('Violation CSP', [ 'page' => Str::limit(strtok((string) ($rapport['document-uri'] ?? ''), '?'), 200), 'directive' => Str::limit((string) ($rapport['violated-directive'] ?? $rapport['effective-directive'] ?? ''), 100), 'bloque' => Str::limit(strtok((string) ($rapport['blocked-uri'] ?? ''), '?'), 200), ]); } return response()->noContent(); } }