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(RequestId $requestId, LoggerInterface $logger, FrontendInterface $cache, PolicyProvider $policyProvider, DispositionMapFactory $dispositionMapFactory) : mixed
Parameters
- $requestId : RequestId
- $logger : LoggerInterface
- $cache : FrontendInterface
- $policyProvider : PolicyProvider
- $dispositionMapFactory : DispositionMapFactory
process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface