ContentSecurityPolicyHeaders implements MiddlewareInterface

Read onlyYes
FinalYes

Adds Content-Security-Policy headers to response.

Internal

Table of Contents

Interfaces

MiddlewareInterface

Methods

__construct()  : mixed
applyToResponse()  : ResponseInterface
Apply Content-Security-Policy headers to an error response that bypassed the normal middleware stack (e.g. responses from ErrorController).
process()  : ResponseInterface

Methods

applyToResponse()

Apply Content-Security-Policy headers to an error response that bypassed the normal middleware stack (e.g. responses from ErrorController).

public applyToResponse(ServerRequestInterface $request, ResponseInterface $response) : ResponseInterface
Parameters
$request : ServerRequestInterface
$response : ResponseInterface
Return values
ResponseInterface

process()

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

        
On this page

Search results