Log in
Model

FetchPolicyReader

Magento\Csp\Model\Collector\Config\FetchPolicyReader

What it does

This class reads and parses Content Security Policy (CSP) fetch directive configurations from Magento's configuration system.

Developers use this to validate and convert CSP fetch policy configuration arrays into FetchPolicy objects that control where the application can load resources from (scripts, styles, images, etc.).

It's part of Magento's security infrastructure for preventing cross-site scripting attacks.

Public Methods

  • read()
  • canRead()