-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: _unsorted
Problems
== Inline Script Block
Line: 39
----
<script type="text/javascript">
function cleanAll() {
$.get("../cleanAll", function ( data ){
const jsonData = JSON.parse(data);
document.getElementById("result").innerHTML=jsonData.message;
document.getElementById("result").style.backgroundColor=jsonData.color;
document.getElementById("result").style.display='inline-block';
});
}
function cleanMeasurements() {
$.get("../cleanMeasurements", function ( data ){
const jsonData = JSON.parse(data);
document.getElementById("result").innerHTML=jsonData.message;
document.getElementById("result").style.backgroundColor=jsonData.color;
document.getElementById("result").style.display='inline-block';
});
}
</script>
----
== Inline Event Handler
Line: 60
----
<a href='#' class='yui-button yui-submit-button submit-button primary' onClick='cleanAll();'>
----
== Inline Event Handler
Line: 62
----
<a href='#' class='yui-button yui-submit-button submit-button primary' onClick='cleanMeasurements();'>
----
Solutions
https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers