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.

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

              Created:
              Updated:
              Resolved: