Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-74643

[r7insight-log-forwarder] Extract inline script block and event handler in com/rapid7/jenkins/R7InsightBuildWrapper/config.jelly

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 3
      ----
      <script>
              function setEndpoint(region) {
                  window.document.getElementById('r7_endpoint').value = region + ".data.logs.insight.rapid7.com";
              }
          </script>
      ----
      
      == Inline Event Handler
      Line: 12
      ----
      <f:select name="region"
                        value="${it.region}"
                        onchange="setEndpoint(this.value)"
              />
      ----
      

      Solutions

      https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
      https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers

            Unassigned Unassigned
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: