1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-11-02 20:32:09 +00:00

Added SRI to CDN link, bumped to 12.0.1 (#355)

From [MaxCDN Support](https://www.maxcdn.com/one/visual-glossary/subresource-integrity/):
> Subresource Integrity (SRI) is a security feature that instructs browsers to verify that resources fetched from third parties like CDNs have been delivered without any manipulation. SRI does this by comparing the hash values of the third-party-hosted resources to the values in the website’s HTML elements.

I used https://www.srihash.org/ to generate the SHA384 hash on https://twemoji.maxcdn.com/2/twemoji.min.js?12.0.1 on 2019-05-23 8:15 PM EST.
This commit is contained in:
Noelle Leigh 2019-05-28 19:26:06 -04:00 committed by Nathan Downs
parent 09161204b9
commit d47248dd1d

View File

@ -17,7 +17,7 @@ The folks over at [MaxCDN](https://www.maxcdn.com) have graciously provided CDN
Use the following in the `<head>` tag of your HTML document(s):
```html
<script src="https://twemoji.maxcdn.com/2/twemoji.min.js?12.0.0"></script>
<script src="https://twemoji.maxcdn.com/2/twemoji.min.js?12.0.1" integrity="sha384-UM2aSky5TK+LGnb3eZ/K+LVxUWpoO1zhIRURk37uiM39vD0oshUZyKZEh3Rd/Gyl" crossorigin="anonymous"></script>
```
## Breaking changes in V2