Not a bug Internet Explorer shows avatar with transparent background as broken image

derEdgar

Member
XenForo 1.5.12
Default or custom theme

Avatars with transparent background show as "broken image" in Internet Explorer (IE 11).
No Problems with Firefox or Chrome.

upload_2017-2-20_19-26-32.png
 

Mike

XenForo developer
Staff member
I can only look at https://podiatryarena.com/data/avatars/l/0/698.jpg?1473857635 as the other URL is returning a password prompt.

However, this is caused by a non-standard header being added (by your web server/reverse proxy) along with a limitation of XF. XF writes all avatars out with a ".jpg" extension regardless of actual type. (From a time when we forced all avatars to JPG.) This server is adding a X-Content-Type-Options: nosniff header. The image in question is a PNG, which causes IE to not display it. IE implements this header more strictly than other browsers (https://github.com/whatwg/fetch/issues/395).

To resolve this, you'd need to prevent that header from being added to at least the image requests.
 
Top