1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Unable to decode image at URL

Discussion in 'Troubleshooting and Problems' started by KakersUK, Mar 9, 2015.

  1. KakersUK

    KakersUK Member

    My forum seems to load fine in Chrome and Firefox, but when I load it up in IE (11) it doesn't load the avatar images at all. Looking at the IE console the error I get is "Unable to decode image at URL".


    Couldn't find anything similar after searching around so any help would be appreciated!
  2. Mike

    Mike XenForo Developer Staff Member

    There appear to be some non-standard hearders added here. I think it's actually the "nosniff" header that you're adding here, as the image is actually a PNG but we serve it with a .jpg extension (this is not normally an issue).
    KakersUK likes this.
  3. KakersUK

    KakersUK Member

    That will probably be because I have NGINX in front of Apache for SSL termination. I don't seem to get the issue if I load the site directly through Apache so I guess the problem lies somewhere with NGINX.
  4. KakersUK

    KakersUK Member

    Removed the nosniff header which NGINX was adding and it's working now, thanks for your help! :)
  5. Deebs

    Deebs Well-Known Member


    Can we revisit this please? More and more admins are implementing the OWASP security recommendations and the X-Content-Type-Options nosniff is causing problems due to the your statement above where you are not serving the files with the true extension of how they are stored.


    rogerl likes this.

Share This Page