Log in

Csp Module

BlockCache

Model

This class wraps Magento's cache interface to store both block HTML content and associated Content Security Policy (CSP) rules together. When develope...

Collector\CompositeMerger

Model

This class acts as a coordinator for merging Content Security Policy (CSP) configurations by delegating the work to specialized merger implementations...

Collector\ConfigCollector

Model

This class collects Content Security Policy (CSP) configurations from Magento's system configuration for both admin and storefront areas. It reads CSP...

Collector\Config\FetchPolicyReader

Model

This class reads and parses Content Security Policy (CSP) fetch directive configurations from Magento's configuration system. Developers use this to v...

Collector\Config\FlagPolicyReader

Model

This class reads and creates CSP (Content Security Policy) flag policies from configuration. Developers use this when implementing security policies t...

Collector\Config\PluginTypesPolicyReader

Model

This class reads and processes Content Security Policy (CSP) plugin-types directives from Magento configuration. Developers use this when configuring...

Collector\Config\PolicyReaderPool

Model

This class manages a pool of policy readers for Content Security Policy (CSP) configuration. Developers use it to retrieve the appropriate reader for...

Collector\Config\SandboxPolicyReader

Model

This class reads and creates Content Security Policy (CSP) sandbox directive configurations from Magento's config files. Developers use this to parse...

Collector\ControllerCollector

Model

This class collects Content Security Policy (CSP) rules from controller actions that implement CspAwareActionInterface. Developers use this when they...

Collector\CspWhitelistXmlCollector

Model

This class collects Content Security Policy (CSP) rules defined in csp_whitelist.xml configuration files across Magento modules. Developers use this w...

Collector\CspWhitelistXml\Converter

Model

This class converts csp_whitelist.xml configuration files into a structured PHP array format that Magento can use. Developers use this when defining C...

Collector\CspWhitelistXml\Data

Model

This class manages the loading and caching of Content Security Policy (CSP) whitelist configuration data from XML files in Magento 2. Developers inter...

Collector\CspWhitelistXml\FileResolver

Model

This class resolves and combines CSP (Content Security Policy) whitelist XML configuration files from both modules and the current theme hierarchy. De...

Collector\CspWhitelistXml\Reader

Model

This class reads and parses csp_whitelist.xml configuration files in Magento 2, which define Content Security Policy (CSP) whitelists for securing web...

Collector\CspWhitelistXml\SchemaLocator

Model

This class provides the location of the XSD schema file used to validate CSP (Content Security Policy) whitelist XML configuration files. Developers u...

Collector\DynamicCollector

Model

This class allows developers to dynamically add Content Security Policy (CSP) rules during page rendering, such as from .phtml templates. It collects...

Collector\FetchPolicyMerger

Model

This class merges two Content Security Policy (CSP) fetch policies into a single unified policy. Developers use this when combining CSP rules from mul...

Collector\FlagPolicyMerger

Model

This class handles the merging of Content Security Policy (CSP) flag policies in Magento 2. When multiple flag-type CSP policies need to be combined,...

Collector\PluginTypesPolicyMerger

Model

This class merges Content Security Policy (CSP) plugin-types directives from multiple sources. Developers use this when Magento needs to combine multi...

Collector\SandboxPolicyMerger

Model

This class merges two Content Security Policy (CSP) sandbox policies into one by combining their permissions using logical OR operations. When multipl...

CompositePolicyCollector

Model

This class collects Content Security Policy (CSP) rules from multiple sources and merges them into a unified set. Developers use this when they need t...

CspRenderer

Model

This class is responsible for rendering Content Security Policy (CSP) headers in HTTP responses. It collects all defined CSP policies and uses appropr...

Mode\ConfigManager

Model

This class manages Content Security Policy (CSP) mode configuration for Magento 2 storefronts and admin areas. Developers use it to retrieve CSP setti...

Mode\Data\ModeConfigured

Model

This class represents the configured Content Security Policy (CSP) mode settings for Magento 2. Developers use this to determine whether CSP is runnin...

PolicyRendererPool

Model

This class manages a pool of policy renderers for Content Security Policy (CSP) headers. Developers use it to find and retrieve the appropriate render...

Policy\FetchPolicy

Model

This class represents a Content Security Policy (CSP) fetch directive in Magento 2, defining what sources are allowed to load resources like scripts,...

Policy\FlagPolicy

Model

This class represents Content Security Policy (CSP) directives that act as flags without requiring values, such as 'upgrade-insecure-requests' and 'bl...

Policy\PluginTypesPolicy

Model

This class implements a Content Security Policy (CSP) for controlling which plugin MIME types are allowed to be loaded on a page. Developers use this...

Policy\Renderer\SimplePolicyHeaderRenderer

Model

This class renders Content Security Policy (CSP) directives as HTTP response headers in Magento 2. It converts simple policy objects into either 'Cont...

Policy\SandboxPolicy

Model

This class represents a Content Security Policy (CSP) sandbox directive that restricts page functionality similar to iframe sandboxing. Developers use...

SubresourceIntegrity

Model

This class represents Subresource Integrity (SRI) data for external resources in Magento 2. Developers use it to store and retrieve the path and crypt...

SubresourceIntegrityCollector

Model

This class collects and stores SubresourceIntegrity objects that are used for CSP (Content Security Policy) security features. Developers would use th...

SubresourceIntegrityRepository

Model

This repository manages Subresource Integrity (SRI) hashes for static assets in Magento 2. Developers use it to store, retrieve, and manage cryptograp...

SubresourceIntegrityRepositoryPool

Model

This class manages a pool of SubresourceIntegrityRepository instances, creating and caching them based on context (like 'storefront' or 'adminhtml')....

SubresourceIntegrity\HashGenerator

Model

This class generates Subresource Integrity (SRI) hashes for content, which are used to verify that resources loaded from external sources haven't been...

SubresourceIntegrity\SriEnabledActions

Model

This class manages which controller actions in Magento 2 should have Subresource Integrity (SRI) attributes enabled for payment pages. Developers woul...

SubresourceIntegrity\Storage\File

Model

This class manages file-based storage for Subresource Integrity (SRI) hashes in Magento 2's CSP system. Developers use this to store, retrieve, and de...