aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes/getting-started
diff options
context:
space:
mode:
authorChris Barry <[email protected]>2015-09-28 22:12:57 -0400
committerChris Rebert <[email protected]>2015-10-23 22:22:57 -0700
commit9aeec56745fde5db4ce0c1992bc1c5a9c70ea9c8 (patch)
treeed08f613dd9cd565d4eb5ff343d918a3c68c6e36 /docs/_includes/getting-started
parent18ad53fc5662e0739a32f86d8dcbfbf5bd5b260a (diff)
downloadbootstrap-9aeec56745fde5db4ce0c1992bc1c5a9c70ea9c8.tar.xz
bootstrap-9aeec56745fde5db4ce0c1992bc1c5a9c70ea9c8.zip
Adding subresource hashes to CDN links.
In Firefox 43 and Chrome 45 there will be support for Subresource Iintegrity (SRI). More information here: https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity Closes #17729 by merging a tweaked version of it.
Diffstat (limited to 'docs/_includes/getting-started')
-rw-r--r--docs/_includes/getting-started/download.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/_includes/getting-started/download.html b/docs/_includes/getting-started/download.html
index bc25122bd..1fb3aab61 100644
--- a/docs/_includes/getting-started/download.html
+++ b/docs/_includes/getting-started/download.html
@@ -31,13 +31,13 @@
<p>The folks over at <a href="https://www.maxcdn.com/">MaxCDN</a> graciously provide CDN support for Bootstrap's CSS and JavaScript. Just use these <a href="https://www.bootstrapcdn.com/">Bootstrap CDN</a> links.</p>
{% highlight html %}
<!-- Latest compiled and minified CSS -->
-<link rel="stylesheet" href="{{ site.cdn.css }}">
+<link rel="stylesheet" href="{{ site.cdn.css }}" integrity="{{ site.cdn.css_hash }}" crossorigin="anonymous">
<!-- Optional theme -->
-<link rel="stylesheet" href="{{ site.cdn.css_theme }}">
+<link rel="stylesheet" href="{{ site.cdn.css_theme }}" integrity="{{ site.cdn.css_theme_hash }}" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
-<script src="{{ site.cdn.js }}"></script>
+<script src="{{ site.cdn.js }}" integrity="{{ site.cdn.js_hash }}" crossorigin="anonymous"></script>
{% endhighlight %}
<h2 id="download-bower">Install with Bower</h2>