[CSP] Prevent use of unsafe-inline for links

* Also update all <a> tags in locals
This commit is contained in:
Sebastian Serth
2022-09-07 21:42:07 +02:00
parent 0d40cdd03a
commit 80419db868
3 changed files with 15 additions and 12 deletions

View File

@@ -32,4 +32,7 @@ $.jstree.defaults.core.worker = false;
// See https://github.com/rails/jquery-ujs/issues/456 for details
$(document).on('turbolinks:load', function(){
$.rails.refreshCSRFTokens();
$('.reloadCurrentPage').on('click', function() {
window.location.reload();
});
});