Model
SimplePolicyHeaderRenderer
Magento\Csp\Model\Policy\Renderer\SimplePolicyHeaderRenderer
What it does
This class renders Content Security Policy (CSP) directives as HTTP response headers in Magento 2.
It converts simple policy objects into either 'Content-Security-Policy' or 'Content-Security-Policy-Report-Only' headers based on configuration, and handles CSP violation reporting by adding Report-To and report-uri directives when configured.
Public Methods
- render()
- canRender()