Log in

Csp Module

Api\CspAwareActionInterface

Interface

This interface allows Magento 2 controllers to customize Content Security Policy (CSP) headers for specific routes or pages. Developers implement this...

Api\CspRendererInterface

Interface

This interface defines a contract for rendering Content Security Policy (CSP) headers into HTTP responses. Developers implement this interface to appl...

Api\Data\ModeConfiguredInterface

Interface

This interface defines the configuration mode for Content Security Policy (CSP) in Magento 2. Developers use this to determine whether CSP violations...

Api\Data\PolicyInterface

Interface

This interface defines the contract for Content Security Policy (CSP) objects in Magento 2. Developers use this to create or work with CSP rules that...

Api\InlineUtilInterface

Interface

This interface provides utility methods for safely rendering HTML tags and event listeners while automatically whitelisting them in Content Security P...

Api\ModeConfigManagerInterface

Interface

This interface defines a contract for managing Content Security Policy (CSP) mode configurations in Magento 2. Developers use this to retrieve CSP set...

Api\PolicyCollectorInterface

Interface

This interface defines the contract for collecting Content Security Policy (CSP) configurations from various sources in Magento 2. Developers implemen...

Api\PolicyRendererInterface

Interface

This interface defines how Content Security Policy (CSP) rules are rendered and applied to HTTP responses in Magento 2. Developers implement this inte...

Model\Collector\Config\PolicyReaderInterface

Interface

This interface defines a contract for reading Content Security Policy (CSP) configurations from Magento's config storage and converting them into poli...

Model\Collector\MergerInterface

Interface

This interface defines the contract for merging Content Security Policy (CSP) objects that share the same policy ID. Developers would implement this i...

Model\Policy\SimplePolicyInterface

Interface

This interface represents a simple Content Security Policy (CSP) that uses a default prefix and ID-value combination. Developers would implement this...

Model\SubresourceIntegrity\StorageInterface

Interface

This interface defines a storage contract for managing Subresource Integrity (SRI) hashes in Magento 2. Developers implement this interface to create...