Jenkins badge does not show when embedded in page served over http

107 Views Asked by At

I want to show Jenkins status badges on a locally hosted webpage served with CGIHTTPServer from python 2.7.

When I call the URL of the badge directly, it is shown correctly, but when embedded in the webpage, only a placeholder is shown. I assume this has to do with the page being served over HTTP, and the badge over HTTPS. In understand there would be problems if the page was HTTPS but the image HTTP, but this is exactly the other way around.

I am using chrome on Windows, if that is important for the answer.

What is the problem here?

1

There are 1 best solutions below

1
On

Heads Up I realize that chrome has forced the pages to use https , except with domain .local , for example: www.example.local

then the first step: put the domain of your page : .local

second step: in /local/hosts put www.example.local

third step: enter chrome and type www.example.local and ready

sorry my english , I hope I helped you