# Spinner.gif requested over http instead of https

**URL:** <https://forum.xwiki.org/t/spinner-gif-requested-over-http-instead-of-https/4167>\
**Category:** Help / Discuss\
**Created:** [January 4, 2019, 12:13am UTC](https://forum.xwiki.org/t/spinner-gif-requested-over-http-instead-of-https/4167 "2019-01-04T00:13:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![geoff.wild](https://forum.xwiki.org/user_avatar/forum.xwiki.org/geoff.wild/32/1303_2.png) [@geoff.wild](https://forum.xwiki.org/u/geoff.wild)\
**Post date:** [January 4, 2019, 12:13am UTC](https://forum.xwiki.org/t/spinner-gif-requested-over-http-instead-of-https/4167/1 "2019-01-04T00:13:03Z")

</div>

Running Xwiki through Nginx proxy with SSL, for some reason, the spinner.gif icon is requested over http - not https.

Mixed Content: The page at ‘[https://test.wiki.mydomain.com/bin/view/Main/](https://test.wiki.mydomain.com/bin/view/Main/)’ was loaded over HTTPS, but requested an insecure image ‘[http://test.wiki.mydomain.com/resources/icons/xwiki/spinner.gif](http://test.wiki.mydomain.com/resources/icons/xwiki/spinner.gif)’. This content should also be served over HTTPS.

Causes an issue in Chrome and FireFox saying the page is not secure.

Any way to fix?

---

<div class="post-metadata">

**Author:** ![AutomationX](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/a/bc79bd/32.png) [@AutomationX](https://forum.xwiki.org/u/AutomationX)\
**Post date:** [January 7, 2019, 2:38pm UTC](https://forum.xwiki.org/t/spinner-gif-requested-over-http-instead-of-https/4167/2 "2019-01-07T14:38:22Z")

</div>

I can confirm this behavior with xwiki 10.11 on docker postgres tomcat.  
Have not yet found time to make a proper report in JIRA / retry this.

I have tried all sorts von nginx configs.

This: [https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationWAR/InstallationTomcat/#Hhttps28secure29](https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationWAR/InstallationTomcat/#Hhttps28secure29)  
didn’t help either.

When using ssl, some actions in xwiki worked (like viewing pages), but others like saving a blog post failed.

In the chrome developer console it complained about the spinner.gif being not https.

---

<div class="post-metadata">

**Author:** ![gdelhumeau](https://forum.xwiki.org/user_avatar/forum.xwiki.org/gdelhumeau/32/3974_2.png) [@gdelhumeau](https://forum.xwiki.org/u/gdelhumeau)\
**Post date:** [January 7, 2019, 2:45pm UTC](https://forum.xwiki.org/t/spinner-gif-requested-over-http-instead-of-https/4167/3 "2019-01-07T14:45:07Z")

</div>

I confirm I have this problem as well in some conditions.

For some reason, the following code generates a bad URL: [xwiki-platform/xwiki-platform-core/xwiki-platform-tree/xwiki-platform-tree-webjar/src/main/less/tree.less at 5716a62c9e91c6ba3ca19bfca21bebfecbb22274 · xwiki/xwiki-platform · GitHub](https://github.com/xwiki/xwiki-platform/blob/5716a62c9e91c6ba3ca19bfca21bebfecbb22274/xwiki-platform-core/xwiki-platform-tree/xwiki-platform-tree-webjar/src/main/less/tree.less#L137)

In my case, it generates [http://localhost:8080/xwiki/resources/icons/xwiki/spinner.gif](http://localhost:8080/xwiki/resources/icons/xwiki/spinner.gif) even though I am behind a proxy server. So we have a problem in xwiki.getSkinFile, maybe only when used in a webjar.

---

<div class="post-metadata">

**Author:** ![AutomationX](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/a/bc79bd/32.png) [@AutomationX](https://forum.xwiki.org/u/AutomationX)\
**Post date:** [January 7, 2019, 2:49pm UTC](https://forum.xwiki.org/t/spinner-gif-requested-over-http-instead-of-https/4167/4 "2019-01-07T14:49:18Z")

</div>

It would be great of one of use could raise a jira issue for this now, currently I don’t have time for that ☹

---

<div class="post-metadata">

**Author:** ![geoff.wild](https://forum.xwiki.org/user_avatar/forum.xwiki.org/geoff.wild/32/1303_2.png) [@geoff.wild](https://forum.xwiki.org/u/geoff.wild)\
**Post date:** [January 7, 2019, 9:04pm UTC](https://forum.xwiki.org/t/spinner-gif-requested-over-http-instead-of-https/4167/5 "2019-01-07T21:04:20Z")

</div>

[Loading...](https://jira.xwiki.org/browse/XDOCKER-93) created!

---

<div class="post-metadata">

**Author:** ![geoff.wild](https://forum.xwiki.org/user_avatar/forum.xwiki.org/geoff.wild/32/1303_2.png) [@geoff.wild](https://forum.xwiki.org/u/geoff.wild)\
**Post date:** [January 9, 2019, 10:32pm UTC](https://forum.xwiki.org/t/spinner-gif-requested-over-http-instead-of-https/4167/6 "2019-01-09T22:32:27Z")

</div>

As a workaround, we uploaded a custom spinner on a secure web server and put the following in our CSS for our Xwiki theme:

.jstree-xwiki\>.jstree-container-ul .jstree-loading\>.jstree-ocl {  
background-image: url(“[Free classifieds - yourdomain.com](https://YOURDOMAIN.COM/xwiki-plugins/spinner.svg)”);  
background-size: 23px;  
position: relative;  
top: -2px;  
}

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [February 18, 2019, 1:25pm UTC](https://forum.xwiki.org/t/spinner-gif-requested-over-http-instead-of-https/4167/7 "2019-02-18T13:25:50Z")

</div>

Issue moved from [Loading...](https://jira.xwiki.org/browse/XDOCKER-93) to [Loading...](https://jira.xwiki.org/browse/XWIKI-16160) since it’ s not related to the docker packaging.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [June 21, 2019, 7:08am UTC](https://forum.xwiki.org/t/spinner-gif-requested-over-http-instead-of-https/4167/8 "2019-06-21T07:08:03Z")

</div>

You’ll be glad to know that the issue is now fixed, see [Loading...](https://jira.xwiki.org/browse/XWIKI-16160)
