Skip to content

Commit

Permalink
Add integrity SHA-256 to externally loaded asset
Browse files Browse the repository at this point in the history
Even though this POC is neither actively used nor maintained, this satisfies CodeQL and ensures the right resource is always loaded from the external URL.
  • Loading branch information
vilkinsons authored Sep 3, 2023
1 parent fce8fe6 commit 47b0473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pocs/distributed_collab/priv/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<h1>Collaborative JSON editing</h1>
<div id="container"></div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/fast-json-patch/3.1.1/fast-json-patch.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fast-json-patch/3.1.1/fast-json-patch.js" integrity="sha256-Qf9lvjtL7xCt5niiMAxwQDC+TowsJAqGo7aA4TEYQRw=" crossorigin="anonymous"></script>

<script>
const container = document.querySelector("#container");
Expand Down

0 comments on commit 47b0473

Please sign in to comment.