Problem with https with favicon in onebox

AI-generated summary

The discussion revolves around an HTTPS issue caused by favicons (.ico files) in Discourse oneboxes loading over HTTP, breaking secure connections. Vaping_Community initially reported the problem and resolved it by adding .ico to the authorized_extensions site setting, allowing Discourse to download and serve favicons locally 9. pfaffman and Falco helped identify the fix, with Falco suggesting the extension change. Later, adorfer encountered a similar issue unrelated to oneboxes, suspecting the “Topic List Previews” plugin, but angus clarified that the root cause is broader: Discourse must be configured to download remote images (including .ico) locally via five key settings — download remote images to local, threshold, max days old, disabled domains, and authorized extensions. Rebuilding HTML and waiting for the “PullHotlinkedImages” Sidekiq job to complete is required for changes to take effect. techAPJ confirmed the fix applies to any non-HTTPS image in oneboxes and emphasized that the issue is not plugin-specific. The thread concludes that while the original problem was solved, broader configuration is needed for full HTTPS compliance, especially for favicons from external sites still using HTTP. Vaping_Community requested splitting the thread, as the later discussion diverged from the original onebox issue.

Ok, so I have my site setup with SSL and it works great, images are downloaded from sources to preserve HTTPS but in an external link onebox the favicon.ico will not / can not download? And is breaking the https.

Did you check in your settings to see if are referring to it as https?

Sorry, to be clear, this is a onebox from a different site.

Oops! Sorry. It’s not one of my areas of expertise, but I’m guessing that’s a problem that can’t easily be fixed. The only way that I can see would be for Discourse to serve its own copy of those, which it does for most images unless that site setting has been changed.

I have the setting set to download images which works great but it can’t work for .ico files?

If you add .ico to authorized extensions it works?

I’ll try now, thanks for the reply.

Edit: Happy Anniversary @Falco :tada:

I’ve added the .ico am I right in thinking this will now download the .ico and serve it locally?

Thankyou it worked :+1:

So perhaps .ico should be added to authorized_extensions by default and this is a :bug:?

I guess your right, they were introduced into onebox in 1.9 I think

EDIT it looks like a topic related to Plugin “TopicListPreview”

_*Discussion: https://meta.discourse.org/t/topic-list-previews/41630/764*_

these favicons “from http-only websites” are getting disturbing now with current chrome/firefox.

in other words: $USERS are complaining about “why is forum inscecure”
Off course i do explain, what “mixed content” means. But out of 2 which complain (where i do explain) there are probly 10 who do NOT complain, but just assume (silently) “discourse-forum=insecure”

and this even happens on the front page of the forum, where there is no onebox visible. (i do not know the background, but the requested URLs are favicons from oneboxes deep down in some threads.)

Could you verify the above @techapj?

The site does show as insecure until the image is downloaded by discourse, not sure if there is a way around it..

discourse doesn’t seem to download favicons due to size? or “copyright contstraints”?
(I am just speculating.)

Add .ico to your allowed extensions and discourse will download them but it does take time to download, it is not instant

I tried this about 14 hours ago and started a full rebake (which finisched successfully meanwhile)

But no change, even after multiple Reloads:

Any hints?

Not until I can get to my laptop…

Btw your header is broken on iPhone SE

You are using custom plugins.

Safe Mode Discourse gets the green padlock: Freifunk Forum

You nailed it. thank you.

as edited above:

It looks like a topic related to Plugin “TopicListPreview”

Can you move it perhaps to https://meta.discourse.org/t/topic-list-previews/41630/764
(because my issue is NOT related to onebox)