Log in
Model

SubresourceIntegrity

Magento\Csp\Model\SubresourceIntegrity

What it does

This class represents Subresource Integrity (SRI) data for external resources in Magento 2.

Developers use it to store and retrieve the path and cryptographic hash of external resources like CSS or JavaScript files, ensuring they haven't been tampered with when loaded from CDNs or external sources.

It's part of Magento's Content Security Policy implementation for enhanced security.

Public Methods

  • getPath()
  • getHash()