Model
ControllerCollector
Magento\Csp\Model\Collector\ControllerCollector
What it does
This class collects Content Security Policy (CSP) rules from controller actions that implement CspAwareActionInterface.
Developers use this when they need individual controller actions to modify or add CSP policies specific to their page requirements, allowing route-specific security policy customization beyond the default Magento policies.
Public Methods
- setCurrentActionInstance()
- collect()