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

Absolute URLs in delivery pipeline break reverse proxy setups

XMLWordPrintable

      I'm having trouble with the URLs being generated for XMLHttpRequests behind a reverse proxy. The URLs generated have the http scheme instead of https.

      I believe this could be solved by changing the URL to be relative instead of absolute.

          public String getApiBaseUrl() {
              return Jenkins.getInstance().getRootUrlFromRequest() + getViewUrl();
          }
      

      See attached screen caps demonstrating the behavior I'm seeing.

        1. delivery-pipeline-plugin.hpi
          338 kB
          Patrik Boström
        2. Screen Shot 2014-07-29 at 9.45.24 AM.png
          33 kB
          Josh Hansen
        3. Screen Shot 2014-07-29 at 9.49.12 AM.png
          70 kB
          Josh Hansen

            patbos Patrik Boström
            skwash Josh Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: