# Apple touch icon causes mixed content warning

**URL:** <https://meta.discourse.org/t/apple-touch-icon-causes-mixed-content-warning/110133>\
**Category:** Product Support\
**Created:** [February 25, 2019, 1:20pm UTC](https://meta.discourse.org/t/apple-touch-icon-causes-mixed-content-warning/110133 "2019-02-25T13:20:46Z")\
**Posts on this page:** 10\
**Page:** 1

## AI-generated summary

A discussion about a mixed content warning in Firefox due to an Apple touch icon being configured as an HTTP URL instead of HTTPS. [RGJ](/t/-/110133/2) identified the issue, which was confirmed by [robbie.morrison](/t/-/110133/3) after checking the external URLs. The solution is to enable the `force_https` site setting, which rewrites HTTP URLs to HTTPS. [Stephen](/t/-/110133/6) and [joebuhlig](/t/-/110133/8) clarified that enabling this setting is necessary for sites served with a certificate and that it simply tells Discourse to coordinate the URLs as needed. [robbie.morrison](/t/-/110133/5) plans to coordinate with the site owner to enable the setting.

<div class="post-metadata">

**Author:** ![robbie.morrison](https://avatars.discourse-cdn.com/v4/letter/r/c5a1d2/32.png) [@robbie.morrison](https://meta.discourse.org/u/robbie.morrison)\
**Post date:** [February 25, 2019, 11:05am UTC](https://meta.discourse.org/t/apple-touch-icon-causes-mixed-content-warning/110133/1 "2019-02-25T11:05:01Z")

</div>

Is this issue **fully resolved**? The reason I ask is that Firefox doesn’t seem to like the remote avatar images? If you go to this [forum](https://forum.openmod-initiative.org), you will see a little **padlock&nbsp;+ orange warning triangle** in the URL bar. That site is self-hosted using a docker image and may well not be properly configured! Notwithstanding, the Firefox icon means “Connection is not secure: your connection is not private and information you share with the site could be used by others: this website contains content that is not secure (such as images)”. More info [here](https://support.mozilla.org/en-US/kb/mixed-content-blocking-firefox?redirectlocale=en-US&as=u&redirectslug=how-does-content-isnt-secure-affect-my-safety&utm_source=inproduct). This warning icon only appeared recently, within the last few weeks, so I&nbsp;suspect it is connected with the default avatar issue documented being in this thread. Thanks as always to the dev team. HTH.

---

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [February 25, 2019, 1:20pm UTC](https://meta.discourse.org/t/apple-touch-icon-causes-mixed-content-warning/110133/2 "2019-02-25T13:20:46Z")

</div>

The reason for that mixed content warning does not have to do anything with avatars. It is caused by the apple touch icon being configured as an http URL instead of HTTPS: [http://forum.openmod-initiative.org/images/default-apple-touch-icon.png](http://forum.openmod-initiative.org/images/default-apple-touch-icon.png)

---

<div class="post-metadata">

**Author:** ![robbie.morrison](https://avatars.discourse-cdn.com/v4/letter/r/c5a1d2/32.png) [@robbie.morrison](https://meta.discourse.org/u/robbie.morrison)\
**Post date:** [February 26, 2019, 3:51pm UTC](https://meta.discourse.org/t/apple-touch-icon-causes-mixed-content-warning/110133/3 "2019-02-26T15:51:23Z")

</div>

@RGJ Thanks for the tip.

So I duly create a 144×144&nbsp;px icon locally (the red square with some text) and add it to `Settings > Required > apple touch icon`.

So far so good although I&nbsp;don’t have an iPhone to test its use. But the Firefox URL bar warning icon persists. So I&nbsp;check the external URLs using `View Page Info` and find that Discourse has used `http` and not `https`. As shown:

 ![lores](https://global.discourse-cdn.com/meta/original/3X/7/b/7b709d1c0fe3b53d7bc111a463774f9c9e40cd8c.png)

In relation to this URL:

- [http://forum.openmod-initiative.org/uploads/default/original/1X/67b1970bdd4cea20e20c53bbbc74d86bbdee7a83.png](http://forum.openmod-initiative.org/uploads/default/original/1X/67b1970bdd4cea20e20c53bbbc74d86bbdee7a83.png)

So is the use of `http` in this situation a bug in Discourse? Or is this correct behavior? Thanks again to the devs and TIA also.

This is not the only custom site-specific icon that is `http` if you look closely at the screenshot but it will quite usefully serve as our test case. The others were loaded at the time the site was established a couple of years back so they are not so informative.

---

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [February 26, 2019, 4:20pm UTC](https://meta.discourse.org/t/apple-touch-icon-causes-mixed-content-warning/110133/4 "2019-02-26T16:20:19Z")

</div>

Have you enabled the `force_https` site setting ?

---

<div class="post-metadata">

**Author:** ![robbie.morrison](https://avatars.discourse-cdn.com/v4/letter/r/c5a1d2/32.png) [@robbie.morrison](https://meta.discourse.org/u/robbie.morrison)\
**Post date:** [February 26, 2019, 5:41pm UTC](https://meta.discourse.org/t/apple-touch-icon-causes-mixed-content-warning/110133/5 "2019-02-26T17:41:55Z")

</div>

@RGJ Not yet. I will need to coordinate with the site owner first. For others visiting this thread, the dialog for that setting is shown below. Thanks for your help.

 ![screenshot](https://global.discourse-cdn.com/meta/original/3X/2/4/241952b5f4a5e88dd41e107d526fcd928428efc1.png)

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [February 26, 2019, 6:15pm UTC](https://meta.discourse.org/t/apple-touch-icon-causes-mixed-content-warning/110133/6 "2019-02-26T18:15:50Z")

</div>

Force https rewrites http URLs to https. It’s mandatory for any site served with a certificate. If you hit any problems it can be disabled again from the console.

---

<div class="post-metadata">

**Author:** ![robbie.morrison](https://avatars.discourse-cdn.com/v4/letter/r/c5a1d2/32.png) [@robbie.morrison](https://meta.discourse.org/u/robbie.morrison)\
**Post date:** [February 26, 2019, 6:29pm UTC](https://meta.discourse.org/t/apple-touch-icon-causes-mixed-content-warning/110133/7 "2019-02-26T18:29:50Z")

</div>

@Stephen Thanks. I figured so. But I need to clear this with the “boss” first.

---

<div class="post-metadata">

**Author:** ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)\
**Post date:** [February 26, 2019, 6:38pm UTC](https://meta.discourse.org/t/apple-touch-icon-causes-mixed-content-warning/110133/8 "2019-02-26T18:38:42Z")

</div>

FWIW, you’ve already enabled https on the site. That’s why you can hit the homepage at `https://`. Turning on that setting simply tells Discourse that you did so and allows it to coordinate the URLs as needed.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [March 30, 2022, 9:08am UTC](https://meta.discourse.org/t/apple-touch-icon-causes-mixed-content-warning/110133/9 "2022-03-30T09:08:28Z")

</div>

Automatically bumped on March 30, 2022, 9:08am UTC



---

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [April 29, 2022, 9:09am UTC](https://meta.discourse.org/t/apple-touch-icon-causes-mixed-content-warning/110133/10 "2022-04-29T09:09:09Z")

</div>

Closed on April 29, 2022, 9:09am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
