Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1733

MP Monitor fraction should support CORS headers

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2017.12.1
    • Fix Version/s: 2017.12.1
    • Component/s: microprofile
    • Labels:
      None

      Description

      The microprofile-conference app integrates multiple services into the application, but this requires CORS header support. When the app attempts to access the health check URL, this is failing with:

      00:14:37.877 health:1 Failed to load http://localhost:5050/health: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.

      Previously in the 2017.10.0-MP_12-RC6 fork, there was an org.wildfly.swarm.monitor.deployment.HealthResponseFilter that added the CORS header. I don't see any such support in the current master branch.

      The metrics fraction add this via its org.wildfly.swarm.microprofile.metrics.runtime.MetricsHttpHandler#provideCorsHeaders method.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                heiko.braun Heiko Braun
                Reporter:
                starksm64 Scott Stark
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: