Log in
Model

Reader

Magento\Csp\Model\Collector\CspWhitelistXml\Reader

What it does

This class reads and parses csp_whitelist.xml configuration files in Magento 2, which define Content Security Policy (CSP) whitelists for securing web pages.

Developers use this indirectly when creating CSP policies in their modules by defining whitelisted domains and resources in csp_whitelist.xml files.

The class handles merging multiple XML files by identifying policies and values through their 'id' attributes.