Skip to main content

Remediation Steps

Follow the steps below to remediate this finding on Drupal.

  1. In your module's *.libraries.yml, add the integrity key for external assets:

  2. my_library:

  3. js:

  4. https:

    //cdn.example.com/lib.js:
    type: external
    attributes:
    integrity: sha384-<hash>
    crossorigin: anonymous