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

Server Sent Events doesn't work with CORS

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • sse-gateway-plugin
    • None
    • Jenkins: 2.190.2
      jenkins-sse-gateway: 1.20

      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?

        

       

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

              Created:
              Updated: