Log in
Model

SandboxPolicy

Magento\Csp\Model\Policy\SandboxPolicy

What it does

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

Developers use it to configure which features are allowed when sandbox mode is enabled, such as forms, scripts, popups, modals, and navigation.

It's part of Magento's security framework to control what restricted pages can do.

Public Methods

  • isFormAllowed()
  • isModalsAllowed()
  • isOrientationLockAllowed()
  • isPointerLockAllowed()
  • isPopupsAllowed()
  • isPopupsToEscapeSandboxAllowed()
  • isPresentationAllowed()
  • isSameOriginAllowed()
  • isScriptsAllowed()
  • isTopNavigationAllowed()
  • isTopNavigationByUserActivationAllowed()
  • getId()
  • getValue()