-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: deployer-framework-plugin
Problems
== Inline Script Block
Line: 92
----
<script type="text/javascript">
x = 60;
function countdown() {
if (x > 1) {
x--;
document.getElementById("autoDeploy").innerHTML = x;
r = setTimeout("countdown()", 1000);
}
else {
clearTimeout(r);
document.getElementById("autoDeploy").innerHTML = 0;
if (document.forms["deploy"].onsubmit && !document.forms["deploy"].onsubmit()) {
return;
}
document.forms["deploy"].submit();
}
}
r = setTimeout("countdown()", 1000);
</script>
----
== Inline Event Handler
Line: 87
----
<a href="#"
onclick="clearTimeout(r); document.getElementById('autoDeployContainer').innerHTML=''; 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