Log in
Model

ConfigCollector

Magento\Csp\Model\Collector\ConfigCollector

What it does

This class collects Content Security Policy (CSP) configurations from Magento's system configuration for both admin and storefront areas.

It reads CSP policies from the store configuration based on the current area and action, merging global and action-specific policies.

Developers interact with this indirectly through Magento's CSP system, but can extend it to customize how CSP policies are loaded from configuration.

Public Methods

  • collect()