Interface
PolicyRendererInterface
Magento\Csp\Api\PolicyRendererInterface
What it does
This interface defines how Content Security Policy (CSP) rules are rendered and applied to HTTP responses in Magento 2.
Developers implement this interface to create custom renderers that convert CSP policy objects into appropriate HTTP headers, with each renderer handling specific policy types through the canRender check before rendering.
Public Methods
- render()
- canRender()