Log in
Model

PluginTypesPolicyReader

Magento\Csp\Model\Collector\Config\PluginTypesPolicyReader

What it does

This class reads and processes Content Security Policy (CSP) plugin-types directives from Magento configuration.

Developers use this when configuring CSP policies to specify which MIME types are allowed for embedded plugins like Flash or Java applets.

It converts configuration data into PluginTypesPolicy objects that Magento's CSP system can enforce.

Public Methods

  • read()
  • canRead()