Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Post History

60%
+1 −0
Q&A Some user avatars are referenced over HTTP when the page is loaded over HTTPS, triggering mixed content handling

I noticed that visiting Using accents while staying legible on Writing triggered a mixed content warning in my browser. Another example is How to train readers in Argot or Slang (full disclosure: I...

0 answers  ·  posted 4y ago by Canina‭

Question bug user-profiles
#1: Initial revision by user avatar Canina‭ · 2020-06-28T13:50:39Z (over 4 years ago)
I noticed that visiting [Using accents while staying legible](http://writing.codidact.com/q/276282) on Writing triggered a mixed content warning in my browser. Another example is [How to train readers in Argot or Slang](http://writing.codidact.com/q/276285) (full disclosure: I have posted an answer to the latter question).

It seems that some user avatars are referred to through `http://writing.codidact.com/uploads/...` which then redirects to `https://s3.amazonaws.com/storage.qpixel.artofcode.co.uk/...`.

This is a problem because the initial request is for a resource hosted over HTTP, which triggers mixed content handling in the browser.

Even though images aren't considered *active* content, that's still enough to cause a strictly configured browser to not load them, and it is a potential information leak; especially on pages with multiple user avatars displayed, it would be plausible to piece together which pages are being viewed based on the specific set of user avatars requested.

**Such requests should either be explicitly HTTPS, or protocol-relative.** (A protocol-relative link is, for example, `//writing.codidact.com/uploads/...`; notice that the protocol specification is missing. If the page is loaded over HTTP, this uses HTTP; correspondingly, if the page is loaded over HTTPS, it uses HTTPS.)

Without having analyzed the issue in detail, it appears to me that this is the case for users who have uploaded their own avatars; those served by `unicornify.pictures` are correctly requested over HTTPS.