Log in
Interface

ModeConfiguredInterface

Magento\Csp\Api\Data\ModeConfiguredInterface

What it does

This interface defines the configuration mode for Content Security Policy (CSP) in Magento 2.

Developers use this to determine whether CSP violations should only be reported (report-only mode) or actively blocked, and to specify a URI endpoint where violation reports should be sent for monitoring and debugging security issues.

Public Methods

  • isReportOnly()
  • getReportUri()