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

[chatwork] Extract inline script block and event handler in com/vexus2/jenkins/chatwork/jenkinschatworkplugin/ChatworkPublisher/global.jelly

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • chatwork-plugin

      Problems

      == Inline Script Block
      Line: 47
      ----
      <script>
            var ChatworkPublisher = {
              clearCache: function(){
                new Ajax.Request("${rootURL}/descriptor/com.vexus2.jenkins.chatwork.jenkinschatworkplugin.ChatworkPublisher/clearCache", {
                  onSuccess: function(rsp) {
                    alert("Clear cache done");
                  }
                });
              }
            };
          </script>
      ----
      
      == Inline Event Handler
      Line: 45
      ----
      <input type="button" value="clear" onclick="ChatworkPublisher.clearCache();"/>
      ----
      

      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: