Skip to content

Commit 9255225

Browse files
author
Francois Marier
committed
SRI: mention the modifications to fetch()
As suggested by @annevk
1 parent aa86dd2 commit 9255225

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

specs/subresourceintegrity/spec.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ impunity. Ideally, authors would not only be able to pin the keys of a
2929
server, but also pin the _content_, ensuring that an exact representation of
3030
a resource, and _only_ that representation, loads and executes.
3131

32-
This document specifies such a validation scheme, extending two HTML
33-
elements with an `integrity` attribute that contains a cryptographic hash of
34-
the representation of the resource the author expects to load. For instance,
32+
This document specifies such a validation scheme, extending two HTML elements
33+
and the `fetch()` API with an `integrity` attribute that contains a cryptographic hash
34+
of the representation of the resource the author expects to load. For instance,
3535
an author may wish to load some framework from a shared server rather than hosting it
3636
on their own origin. Specifying that the _expected_ SHA-256 hash of
3737
`https://example.com/example-framework.js`

0 commit comments

Comments
 (0)