Skip to content

Commit ee41bf9

Browse files
committed
docs: pin the verify widget at 0.4.0 with SRI + crossorigin
The demo and README previously loaded a moving @latest with no integrity check — contradicting the widget's own guidance. Auths-Id: did:keri:ELv6uW2irGkclnFq8lAsAexmoLwZ-3k-ocwjpFBZsIEG Auths-Device: did:keri:ELv6uW2irGkclnFq8lAsAexmoLwZ-3k-ocwjpFBZsIEG
1 parent 92a3c50 commit ee41bf9

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ The `<auths-verify>` web component performs cryptographic verification entirely
2525
**Add to any HTML page:**
2626

2727
```html
28-
<script type="module" src="https://unpkg.com/@auths-dev/verify/dist/auths-verify.mjs"></script>
28+
<script type="module"
29+
src="https://unpkg.com/@auths-dev/verify@0.4.0/dist/auths-verify.mjs"
30+
integrity="sha384-C6a5GCsPgw/o9tmtnaUXZ0qJgY/q8LdNxvuP/10EwOK39ZdiAcYz6CP8lT6m1V5R"
31+
crossorigin="anonymous"></script>
2932

3033
<!-- Compact badge -->
3134
<auths-verify repo="your-org/your-repo" forge="github" mode="badge"></auths-verify>

‎docs/index.html‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Auths Verification Demo</title>
7-
<script type="module" src="https://unpkg.com/@auths-dev/verify/dist/auths-verify.mjs"></script>
7+
<script type="module"
8+
src="https://unpkg.com/@auths-dev/verify@0.4.0/dist/auths-verify.mjs"
9+
integrity="sha384-C6a5GCsPgw/o9tmtnaUXZ0qJgY/q8LdNxvuP/10EwOK39ZdiAcYz6CP8lT6m1V5R"
10+
crossorigin="anonymous"></script>
811
<style>
912
* { box-sizing: border-box; margin: 0; padding: 0; }
1013
body {

0 commit comments

Comments
 (0)