‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Middleware\AbstractContentSecurityPolicyReporter Class Reference
Inheritance diagram for TYPO3\CMS\Core\Middleware\AbstractContentSecurityPolicyReporter:
TYPO3\CMS\Backend\Middleware\ContentSecurityPolicyReporter TYPO3\CMS\Frontend\Middleware\ContentSecurityPolicyReporter

Public Member Functions

 __construct (protected readonly PolicyProvider $policyProvider, protected readonly ReportRepository $reportRepository, protected readonly HashService $hashService,)
 

Protected Member Functions

 persistCspReport (Scope $scope, ServerRequestInterface $request)
 
 generateReportSummary (Scope $scope, ReportDetails $details)
 
 anonymizeDetails (array $details)
 
 anonymizeUri (string $value)
 
 isCspReport (Scope $scope, ServerRequestInterface $request)
 
 isJson (string $value)
 

Protected Attributes

const URI_KEYS = ['document-uri', 'report-uri', 'blocked-uri', 'referrer']
 

Detailed Description

Definition at line 35 of file AbstractContentSecurityPolicyReporter.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Middleware\AbstractContentSecurityPolicyReporter::__construct ( protected readonly PolicyProvider  $policyProvider,
protected readonly ReportRepository  $reportRepository,
protected readonly HashService  $hashService 
)

Definition at line 39 of file AbstractContentSecurityPolicyReporter.php.

Member Function Documentation

◆ anonymizeDetails()

TYPO3\CMS\Core\Middleware\AbstractContentSecurityPolicyReporter::anonymizeDetails ( array  $details)
protected

◆ anonymizeUri()

TYPO3\CMS\Core\Middleware\AbstractContentSecurityPolicyReporter::anonymizeUri ( string  $value)
protected

◆ generateReportSummary()

TYPO3\CMS\Core\Middleware\AbstractContentSecurityPolicyReporter::generateReportSummary ( Scope  $scope,
ReportDetails  $details 
)
protected

◆ isCspReport()

TYPO3\CMS\Core\Middleware\AbstractContentSecurityPolicyReporter::isCspReport ( Scope  $scope,
ServerRequestInterface  $request 
)
protected

◆ isJson()

TYPO3\CMS\Core\Middleware\AbstractContentSecurityPolicyReporter::isJson ( string  $value)
protected

◆ persistCspReport()

Member Data Documentation

◆ URI_KEYS

const TYPO3\CMS\Core\Middleware\AbstractContentSecurityPolicyReporter::URI_KEYS = ['document-uri', 'report-uri', 'blocked-uri', 'referrer']
protected

Definition at line 37 of file AbstractContentSecurityPolicyReporter.php.