This project is not covered by Drupal’s security advisory policy.
A very small module, which allows developers to specify SRI attributes for their external assets in *.libraries.yml.
Example:
test_asset:
js:
"https://cdnjs.cloudflare.com/ajax/libs/jquery.sumoselect/3.0.2/jquery.sumoselect.js":
type: external
minified: true
integrity: sha256-o0G4qUYy+/nkaocR6qFtWcNgEfTcNbzoy373p8dyepY=
crossorigin: anonymous
Will result in:
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.sumoselect/3.0.2/jquery.sumoselect.js" integrity="sha256-o0G4qUYy+/nkaocR6qFtWcNgEfTcNbzoy373p8dyepY=" crossorigin="anonymous"></script>
Supporting organizations:
Proudly sponsored development
Project information
- Project categories: Developer tools, Security
- Created by valentine94 on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
