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

Anchore plugin reports should still render when Resource Root URL is configured

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.263.1
      Anchore Container Scanner Plugin 1.0.23

       

      When viewing https://<jenkins url>/job/<job name>/job/main/1/anchore-results/,  this plugin cannot pull anchore_gates.json and anchore_security.json artifacts client-side when a Resource root URL is set in Jenkins > Manage Jenkins > Configure System > Serve resource files from another domain.

       

      The browser console indicates a cors issue:

      Access to XMLHttpRequest at 'https://<jenkins resource root url>/static-files/1Gn7axCcS4I1-5RgHpYPLvlaS8PfaVqDfS-8oo5tV64xNjI1ODYwNDAxMjkxOjU6YWRtaW46am9iL3NtYXJ0bGlmdC1zdG9yZS11aS9qb2IvbWFpbi8zMi9hcnRpZmFjdA==/AnchoreReport.main_32/anchore_security.json' (redirected from 'https://<jenkins url>/job/<job name>/job/main/1/artifact/AnchoreReport.main_32/anchore_security.json') from origin 'https://<jenkins url>' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

       

            nurmi Daniel Nurmi
            jpearnest JP
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: