ContentSecurityPolicyReporter extends AbstractContentSecurityPolicyReporter

Internal

Table of Contents

Constants

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

Properties

$policyProvider  : PolicyProvider
$reportRepository  : ReportRepository

Methods

__construct()  : mixed
process()  : ResponseInterface
anonymizeDetails()  : array<string|int, mixed>
anonymizeUri()  : string
generateReportSummary()  : string
isCspReport()  : bool
isJson()  : bool
persistCspReport()  : void

Constants

URI_KEYS

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

Properties

Methods

process()

public process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
$request : ServerRequestInterface
$handler : RequestHandlerInterface
Return values
ResponseInterface

anonymizeDetails()

protected anonymizeDetails(array<string|int, mixed> $details) : array<string|int, mixed>
Parameters
$details : array<string|int, mixed>
Return values
array<string|int, mixed>

anonymizeUri()

protected anonymizeUri(string $value) : string
Parameters
$value : string
Return values
string

isCspReport()

protected isCspReport(Scope $scope, ServerRequestInterface $request) : bool
Parameters
$scope : Scope
$request : ServerRequestInterface
Return values
bool

isJson()

protected isJson(string $value) : bool
Parameters
$value : string
Return values
bool

persistCspReport()

protected persistCspReport(Scope $scope, ServerRequestInterface $request) : void
Parameters
$scope : Scope
$request : ServerRequestInterface

        
On this page

Search results