Log in
Model

SandboxPolicyMerger

Magento\Csp\Model\Collector\SandboxPolicyMerger

What it does

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

When multiple sandbox policies are defined across different modules or configurations, this merger ensures the final policy allows any feature that either of the original policies permitted, making the combined policy less restrictive than either individual policy.

Public Methods

  • merge()
  • canMerge()