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

[cctray-xml] Extract inline script block in org/jenkinsci/plugins/cctrayxml/CCTrayXmlPageDecorator/footer.jelly

XMLWordPrintable

      Problem

      == Inline Script Block
      Line: 26
      ----
      <script>//<![CDATA[
      Behaviour.addLoadEvent(function() {
              var rssbar = document.getElementById('rss-bar')
              if (typeof rssbar !== 'undefined' && rssbar !== null) {
                  rssbar.insertAdjacentHTML('beforeend', ' <a href="cc.xml/" class="yui-button link-button"><img src="${resURL}/plugin/cctray-xml/images/svgs/Icon-txt.svg" class="leading-icon" height="16px"/> cc.xml</a> <a href="cc.xml/?recursive" class="yui-button link-button"><img src="${resURL}/plugin/cctray-xml/images/svgs/Icon-txt.svg" class="leading-icon" height="16px"/> recursive cc.xml</a></a>');
              }
      });//]]>
          </script>
      ----
      

      Solution

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

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

              Created:
              Updated: