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