Skip to content

Commit

Permalink
Added Subresource Integrity (SRI)
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker authored Jan 6, 2021
1 parent 305f0b4 commit 2499401
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion www/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@ It can be used via [NPM](https://www.npmjs.com/) as "`htmx.org`" or downloaded o
[unpkg](https://unpkg.com/browse/htmx.org/) or your other favorite NPM-based CDN:

``` html
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]"></script>
```

For added security, you can load the script using [Subresource Integrity (SRI)](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity).

``` html
<script src="https://unpkg.com/[email protected]" integrity="sha384-JVb/MVb+DiMDoxpTmoXWmMYSpQD2Z/1yiruL8+vC6Ri9lk6ORGiQqKSqfmCBbpbX" crossorigin="anonymous"></script>
```

## <a name="ajax"></a> [AJAX](#ajax)
Expand Down

0 comments on commit 2499401

Please sign in to comment.