-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
82 lines (81 loc) · 3.04 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>Demo Pages for Subresource Integrity (SRI)</title>
<meta name=description content="demo pages for fundamental behavior of Subresource Integrity (SRI) and related stuffs.">
<meta http-equiv=X-UA-Compatible content="IE=Edge">
<meta name=viewport content="width=device-width,initial-scale=1.0">
<meta name=robots content=index,follow>
<link rel=canonical href=https://laysent.github.io/subresource-integrity-demo/index.html />
<link
href=./main.css
rel=stylesheet
integrity="sha512-mbzzgGIjfEC93ZP2SML7m8+qpNxg4KQH5s28RcwDGfgB8mpa9MbIlSg1GDd6IMeHowT1owpRqNnSJK7Feob12g=="
crossorigin=anonymous
/>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-31656866-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-31656866-1');
</script>
</head>
<body>
<main>
<h1>Subresource Integrity (SRI)</h1>
<section>
<h2>introduction</h2>
<p>
This project is to show the fundamental behavior of <em>subresource integrity (SRI)</em> in
modern browsers.
</p>
</section>
<section>
<h2>demo list</h2>
<ul>
<li>
<a href=./integrity.html>Demo 1</a> - Demo of <em>integrity</em> attribute.
</li>
<li>
<a href=./integrity-and-preload.html>Demo 2</a> - Demo of <em>preload</em> and <em>SRI</em>.
</li>
<li>
<a href=./integrity-and-prefetch.html>Demo 3</a> - Demo of <em>prefetch</em> and <em>SRI</em>.
</li>
<li>
<a href=./content-security-policy.html>Demo 4</a> - Demo of HTTP Header <em>Content-Security-Policy</em>
with new directive instructs <em>require-sri-for</em>.
</li>
<li>
<a href=./service-worker/integrity-with-service-worker-and-inserted-resource.html>Demo 5</a>
- Demo of <em>Service Worker</em> working with <em>subresource integrity</em>.
</li>
<li>
<a href=./integrity-and-fetch.html>Demo 6</a> - Demo the usage of <em>integrity</em>
attribute in <em>fetch</em>, and how it could bring <em>SRI</em> for resources that are
not natively supported, such as image.
</li>
</ul>
</section>
<section>
<h2>links</h2>
<ul>
<li>
<a href=https://github.com/laysent/subresource-integrity-demo>Github Repo</a>
- Please feel free to contribute this demo
</li>
<li>
<a href=https://laysent.github.io/sri-hash-generator target=_blank>SRI Hash Generator</a>
- Progressive Web App that helps generate <em>SRI</em> hash out of give resource
</li>
</ul>
</section>
</main>
<footer>
© 2018 LaySent.
</footer>
</body>
</html>