‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Middleware\ContentSecurityPolicyHeaders Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Middleware\ContentSecurityPolicyHeaders:

Public Member Functions

 __construct (private Features $features, private RequestId $requestId, private LoggerInterface $logger, #[Autowire(service:'cache.assets')] private FrontendInterface $cache, private PolicyProvider $policyProvider,)
 
 process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Detailed Description

Adds Content-Security-Policy headers to response.

Definition at line 38 of file ContentSecurityPolicyHeaders.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Middleware\ContentSecurityPolicyHeaders::__construct ( private Features  $features,
private RequestId  $requestId,
private LoggerInterface  $logger,
# private FrontendInterface  $cache[Autowire(service:'cache.assets')],
private PolicyProvider  $policyProvider 
)

Definition at line 40 of file ContentSecurityPolicyHeaders.php.

Member Function Documentation

◆ process()

TYPO3\CMS\Frontend\Middleware\ContentSecurityPolicyHeaders::process ( ServerRequestInterface  $request,
RequestHandlerInterface  $handler 
)