Skip to content

Commit

Permalink
Add integrity SHA-256 to externally loaded asset (#40)
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 23c9566 commit 11273e1
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 11273e1

Please sign in to comment.