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

Server Sent Events doesn't work with CORS

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: sse-gateway-plugin
    • Labels:
      None
    • Environment:
      Jenkins: 2.190.2
      jenkins-sse-gateway: 1.20
    • Similar Issues:

      Description

      We use the CORS plugin to be able to access jenkins content from an HTML REST Client. To receive status updates on our dashboard we use the Jenkins SSE Gateway plugin with the javascript client.

      The plugin doesn't use the CORS settings from the CORS plugin. So far we have forked the repo and hard coded CORS in src\main\java\org\jenkinsci\plugins\ssegateway\Endpoint.java.

      A better approach would be to get the information from the cors-plugin on initialize.

      But shouldn't the SSE request go through the CORS Filter anyway?

        

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            sschlet Stefan Schletterer
            Reporter:
            sschlet Stefan Schletterer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: