Log in
Model

ConfigManager

Magento\Csp\Model\Mode\ConfigManager

What it does

This class manages Content Security Policy (CSP) mode configuration for Magento 2 storefronts and admin areas.

Developers use it to retrieve CSP settings like report-only mode and report URI for the current area and action, with fallback to default configuration values.

It determines whether CSP violations should be reported or enforced based on store configuration.

Public Methods

  • getConfigured()