Skip to content

Commit 11273e1

Browse files
authored
Add integrity SHA-256 to externally loaded asset (#40)
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.
1 parent 23c9566 commit 11273e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pocs/distributed_collab/priv/static/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<h1>Collaborative JSON editing</h1>
2525
<div id="container"></div>
2626

27-
<script src="https://cdnjs.cloudflare.com/ajax/libs/fast-json-patch/3.1.1/fast-json-patch.js"></script>
27+
<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>
2828

2929
<script>
3030
const container = document.querySelector("#container");

0 commit comments

Comments
 (0)