-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: htmlresource-plugin
Problems
== Inline Script Block
Line: 82
----
<script>
function confirmDelete(name) {
if (confirm("Sure you want to delete ["+name+"]?")) {
return true;
}else{
return false;
}
}
</script>
----
== Inline Event Handler
Line: 47
----
<a href="removeHTMLResource?id=${t.id}" onclick="return confirmDelete('${t.name}')">
----
Solutions
https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers