Skip to content

Commit

Permalink
Add SRI integrity to CDN hosted JS resources
Browse files Browse the repository at this point in the history
  • Loading branch information
asset-web committed Jan 23, 2024
1 parent cef4adf commit e8e4992
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
1 change: 0 additions & 1 deletion browser/templates/results.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ <h2>Original results <i class="fa fa-code-fork" title="Previous version" style="
{% endif %}
</div>
{% endif %}

{% endblock %}

{% block scripts %}
Expand Down
9 changes: 4 additions & 5 deletions browser/templates/results_listing.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

{% block scripts %}
<!-- DataTables JavaScript -->
<script src="https://cdn.datatables.net/1.13.8/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.13.8/js/dataTables.bootstrap.min.js"></script>
<script src="https://cdn.datatables.net/responsive/2.5.0/js/dataTables.responsive.min.js"></script>
<script src="https://cdn.datatables.net/1.13.8/js/jquery.dataTables.min.js" integrity="sha512-BQ3f0AMbTpWxc4YSQm03nL5LX7mb4KhgNQfEowc6IdpylTaRuzkiChTJISQlKWaof0rIYtHRaRBEl8G6F8GxzA==" crossorigin="anonymous"></script>
<script src="https://cdn.datatables.net/1.13.8/js/dataTables.bootstrap.min.js" integrity="sha512-zAokAlVr3ADuYA4Z+Z4pQWPYZIqPwhGkvAqIFXA8PaPqtql3j6eBlMr6DK9UWNJBRuaJpk4CZUo44wCnGu8paA==" crossorigin="anonymous"></script>
<script src="https://cdn.datatables.net/responsive/2.5.0/js/dataTables.responsive.min.js" integrity="sha512-GFDiZYmIUHTqigl5L9/ABb+r8R2RlfDevKYvOqkH1QxdUk270OJ7gmdFrvk6bcZXijqG6FrbEajw/Dqx4qnlMA==" crossorigin="anonymous"></script>
<script>
$(document).ready(function() {
$('#results').DataTable({
Expand All @@ -37,7 +37,7 @@
{% if messages %}
<ul class="errorlist">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
<li {% if message.tags %}class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
Expand Down Expand Up @@ -72,7 +72,6 @@
</tbody>
</table>
<hr />

{% endif %}

<table id="results" class="table table-striped table-bordered table-hover compact">
Expand Down
9 changes: 3 additions & 6 deletions browser/templates/user_listing.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

{% block scripts %}
<!-- DataTables JavaScript -->
<script src="https://cdn.datatables.net/1.13.8/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.13.8/js/dataTables.bootstrap.min.js"></script>
<script src="https://cdn.datatables.net/responsive/2.5.0/js/dataTables.responsive.min.js"></script>
<script src="https://cdn.datatables.net/1.13.8/js/jquery.dataTables.min.js" integrity="sha512-BQ3f0AMbTpWxc4YSQm03nL5LX7mb4KhgNQfEowc6IdpylTaRuzkiChTJISQlKWaof0rIYtHRaRBEl8G6F8GxzA==" crossorigin="anonymous"></script>
<script src="https://cdn.datatables.net/1.13.8/js/dataTables.bootstrap.min.js" integrity="sha512-zAokAlVr3ADuYA4Z+Z4pQWPYZIqPwhGkvAqIFXA8PaPqtql3j6eBlMr6DK9UWNJBRuaJpk4CZUo44wCnGu8paA==" crossorigin="anonymous"></script>
<script src="https://cdn.datatables.net/responsive/2.5.0/js/dataTables.responsive.min.js" integrity="sha512-GFDiZYmIUHTqigl5L9/ABb+r8R2RlfDevKYvOqkH1QxdUk270OJ7gmdFrvk6bcZXijqG6FrbEajw/Dqx4qnlMA==" crossorigin="anonymous"></script>
<script>
$(document).ready(function() {
$('#users').DataTable({
Expand All @@ -26,13 +26,11 @@
});
} );
</script>

{% endblock %}

{% block section_title %}Manage users{% endblock %}

{% block section %}

{% if messages %}
<ul class="errorlist">
{% for message in messages %}
Expand Down Expand Up @@ -71,5 +69,4 @@
{% endfor %}
</tbody>
</table>

{% endblock %}

0 comments on commit e8e4992

Please sign in to comment.