mirror of https://gitlab.com/curben/blog
Use subresource integrity for js
https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity https://hacks.mozilla.org/2015/09/subresource-integrity-in-firefox-43/ https://www.troyhunt.com/protecting-your-embedded-content-with-subresource-integrity-sri/
This commit is contained in:
parent
4fb0adb24a
commit
73b0a203bc
|
@ -1,5 +1,8 @@
|
||||||
<%- js('js/jquery.min') %>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT" crossorigin="anonymous"></script>
|
||||||
<%- js('js/clipboard.min') %>
|
<script>(window.jQuery) || document.write('<%= js('js/jquery.min') %>');</script>
|
||||||
|
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.1/clipboard.min.js" integrity="sha384-JbuAF+8+4FF8uR/7D07/5IWwIj2FoNw5jJQGg1s8GtGIfQXFxWPRdMNWYmU35KjP" crossorigin="anonymous"></script>
|
||||||
|
<script>if (typeof ClipboardJS === "undefined") document.write('<%= js('js/clipboard.min') %>');</script>
|
||||||
|
|
||||||
<% if (theme.fancybox){ %>
|
<% if (theme.fancybox){ %>
|
||||||
<%- css('fancybox/jquery.fancybox.min') %>
|
<%- css('fancybox/jquery.fancybox.min') %>
|
||||||
|
|
Loading…
Reference in New Issue