-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: _unsorted
Problems
== Inline Script Block
Line: 24
----
<script>
function toggleGlobalArguments(link) {
let textArea = link.nextElementSibling
if (textArea.type !== "textarea") {
throw "Element is not textarea!"
}
let hidden = textArea.style.display === "none"
textArea.style.display = hidden ? "" : "none"
link.innerText = (hidden ? "Hide" : "Show") + " global arguments"
}
</script>
----
== Inline Event Handler
Line: 120
----
<a href="#" onclick="toggleGlobalArguments(this); return false;">
----
Solutions
https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers