Log in
Interface

ModeConfigManagerInterface

Magento\Csp\Api\ModeConfigManagerInterface

What it does

This interface defines a contract for managing Content Security Policy (CSP) mode configurations in Magento 2.

Developers use this to retrieve CSP settings such as whether the system is in report-only or restrict mode, and the configured report URL.

It's typically used when implementing or customizing CSP behavior to ensure proper security policy enforcement.

Public Methods

  • getConfigured()