ContentSecurityPolicyHeaders implements MiddlewareInterface
Read onlyYes
FinalYes
Adds Content-Security-Policy headers to response.
Table of Contents
Interfaces
- MiddlewareInterface
Methods
- __construct() : mixed
- process() : ResponseInterface
Methods
__construct()
public
__construct(RequestId $requestId, LoggerInterface $logger, FrontendInterface $cache, PolicyProvider $policyProvider) : mixed
Parameters
- $requestId : RequestId
- $logger : LoggerInterface
- $cache : FrontendInterface
- $policyProvider : PolicyProvider
process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface