Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Subresource Integrity

From Wikipedia, the free encyclopedia

Subresource Integrity orSRI is aW3C recommendation to provide a method to protect website delivery. Specifically, it validates assets served by a third party, such as acontent delivery network (CDN). This ensures these assets have not been compromised for hostile purposes.

To use SRI, a website author wishing to include a resource from a third party can specify acryptographic hash of the resource in addition to the location of the resource. Browsers fetching the resource can then compare the hash provided by the website author with the hash computed from the resource. If the hashes don't match, the resource is discarded.[1]

A samplescript element withintegrity andcrossorigin attribute used by the SRI:

<scriptsrc="https://cdn.example.com/app.js"integrity="sha384-+/M6kredJcxdsqkczBUjMLvqyHb1K/JThDXWsBVxMEeZHEaMKEOEct339VItX1zB"crossorigin="anonymous"></script>

References

[edit]
  1. ^"Subresource Integrity". Mozilla Developer Network. Retrieved14 April 2016.

External links

[edit]
Products,
standards
Recommendations
Notes
Working drafts
Guidelines
Initiative
Deprecated
Obsoleted
Groups,
organizations
Elected
Working
Community, business
Closed
Software
Browsers
Conferences
Retrieved from "https://en.wikipedia.org/w/index.php?title=Subresource_Integrity&oldid=1319378946"
Categories:

[8]ページ先頭

©2009-2026 Movatter.jp