Interface
PolicyInterface
Magento\Csp\Api\Data\PolicyInterface
What it does
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 control which resources can be loaded on a page, helping prevent cross-site scripting (XSS) and other code injection attacks.
Each policy has a unique identifier and a string value representing the actual CSP directive.
Public Methods
- getId()
- getValue()