1
0
mirror of synced 2024-11-25 22:36:03 +03:00

Replaced protocol-relative URLs with HTTPS protocol

Use of protocol-relative URLs is now seen as an anti-pattern as it leaves the door open to attacks. As the CDNs serve over HTTPS it should be recommended that people use HTTPS rather than protocol-relative URLs. See Paul Irish's post on [Protocol-relative URLs](http://www.paulirish.com/2010/the-protocol-relative-url/) for more details.
This commit is contained in:
Andy Carter 2016-01-27 10:21:50 +00:00
parent 97f7eea9ce
commit 9b4b9175fc

View File

@ -113,7 +113,7 @@ slug: home
<p> <p>
Select2 is hosted on both the Select2 is hosted on both the
<a href="https://cdnjs.com/libraries/select2">cdnjs</a> and <a href="https://cdnjs.com/libraries/select2">cdnjs</a> and
<a href="http://www.jsdelivr.com/#!select2">jsDelivr</a> CDNs, allowing <a href="https://www.jsdelivr.com/#!select2">jsDelivr</a> CDNs, allowing
you to quickly include Select2 on your website. you to quickly include Select2 on your website.
</p> </p>
@ -125,8 +125,8 @@ slug: home
</p> </p>
<pre class="code prettyprint"> <pre class="code prettyprint">
&lt;link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/css/select2.min.css" rel="stylesheet" /&gt; &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/css/select2.min.css" rel="stylesheet" /&gt;
&lt;script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/js/select2.min.js"&gt;&lt;/script&gt; &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/js/select2.min.js"&gt;&lt;/script&gt;
</pre> </pre>
<div class="alert alert-info"> <div class="alert alert-info">