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

Need documentation on how to use CASC to configure CORS

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • cors-filter-plugin
    • None
    • Latest versions as of 10/30/24

      I cannot find any documentation on what YAML settings to place in a CASC configuration drop to setup CORS.

      I am expecting something like:

          cors:
              enabled: true
              allowOrigin: "*"
              allowCredentials: true
              allowHeaders:
                - "accept"
                - "accept-encoding"
                - "accept-language"
                ...
                - "te"
                - "user-agent"
                - "x-requested-with"
              allowMethods:
                - "GET"
                - "POST"
                - "PUT"
                - "DELETE"
              exposeHeaders:
                - "access-control-allow-origin"
                - "authorization"
                - "jenkins-crumb"
                - "location"
              maxAge: 999
       

      I have blindly tried cors, corsfilter, etc - and scourged the internet and AI bots to no avail; did I miss something really obvious?

      Thank you!

            uday Udaypal Aarkoti
            inakypg Inaky Perez-Gonzalez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: