PolicyProvider

FinalYes

Provide a Content-Security-Policy representation for a given scope (e.g. backend, frontend, frontend.my-site).

Internal

Table of Contents

Constants

REPORTING_URI  = '@http-reporting'

Methods

__construct()  : mixed
getDefaultReportingUriBase()  : UriInterface
Returns the URI base, for better partitioning it should be extended by `&requestTime=...`
getReportingUrlFor()  : UriInterface|null
provideFor()  : Policy
Provides the complete, dynamically mutated policy to be used in HTTP responses.

Constants

REPORTING_URI

protected mixed REPORTING_URI = '@http-reporting'

Methods

getDefaultReportingUriBase()

Returns the URI base, for better partitioning it should be extended by `&requestTime=...`

public getDefaultReportingUriBase(Scope $scope, ServerRequestInterface $request[, bool $absolute = true ]) : UriInterface
Parameters
$scope : Scope
$request : ServerRequestInterface
$absolute : bool = true
Return values
UriInterface

getReportingUrlFor()

public getReportingUrlFor(Scope $scope, ServerRequestInterface $request[, DispositionConfiguration|null $dispositionConfiguration = null ]) : UriInterface|null
Parameters
$scope : Scope
$request : ServerRequestInterface
$dispositionConfiguration : DispositionConfiguration|null = null
Return values
UriInterface|null

        
On this page

Search results