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

HTML Publisher Report CSS not loading for https/secure Jenkins URL

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major Major
    • htmlpublisher-plugin
    • None
    • Jenkins 2.277.2 , HTML Publish plugin, Selenium, TestNg

      CSS and images are not loading if I switch from http to https Jenkins. My jenkins startup script looks like :-

      https -->jenkinsStartup.bat (CSS/images does not load properly in Jenkins extent Report  for below case -->

      java -Dhudson.model.DirectoryBrowserSupport.CSP="" -jar "C:\JenkinsWar\jenkins.war" --httpsPort=443 --httpPort=-1 --httpsKeyStore="C:\JenkinsWar\cert\wildcard_domainname_com.jks" --httpsKeyStorePassword=XXXYYYYZZZZ 

      http >jenkinsStartup.bat (CSS load properly in Jenkins extent Report for below case>

      java -Dhudson.model.DirectoryBrowserSupport.CSP="" -jar "C:\JenkinsWar\jenkins.war" --httpsPort=80

       

      Please help.

      Br ,  Ashwnikumar

       

          [JENKINS-65344] HTML Publisher Report CSS not loading for https/secure Jenkins URL

          Ashwini added a comment -

          This was my own induced problem, realised next morning post raising this issue. CSS was not loading because my Extent Report config xml (extent-config.xml) was still using http protocol , so to make CSS work for html publisher i had to adjust the code from http to https where ever i had reference in my eclipse project.

          Realised this only after seeing Mixed Content error in browser–>

          Mixed Content: The page at 'https://jenkinsmaster.domainname.com/view/TestingServices/job-HealthCheckTest/HTML_20Report/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600'. This request has been blocked; the content must be served over HTTPS.

           

          Thanks , Br Ashwinikumar

          Ashwini added a comment - This was my own induced problem, realised next morning post raising this issue. CSS was not loading because my Extent Report config xml ( extent-config.xm l) was still using http protocol , so to make CSS work for html publisher i had to adjust the code from http to https where ever i had reference in my eclipse project. Realised this only after seeing Mixed Content error in browser–> Mixed Content: The page at 'https://jenkinsmaster.domainname.com/view/TestingServices/job-HealthCheckTest/HTML_20Report/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600'. This request has been blocked; the content must be served over HTTPS.   Thanks , Br Ashwinikumar

            r2b2_nz Richard Bywater
            ashwini35 Ashwini
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: