# SSO avatar sync not working due to incorrect HTTP HEAD response

**URL:** <https://meta.discourse.org/t/sso-avatar-sync-not-working-due-to-incorrect-http-head-response/74979>\
**Category:** SSO\
**Created:** [Novembro 28, 2017, 9:29pm UTC](https://meta.discourse.org/t/sso-avatar-sync-not-working-due-to-incorrect-http-head-response/74979 "2017-11-28T21:29:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Dany](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dany/32/120447_2.png) [@Dany](https://meta.discourse.org/u/Dany)\
**Post date:** [Novembro 28, 2017, 9:29pm UTC](https://meta.discourse.org/t/sso-avatar-sync-not-working-due-to-incorrect-http-head-response/74979/1 "2017-11-28T21:29:00Z")

</div>

My main website is connected to my discourse application with SSO activated. Evrything work fine but the avatar syncing between website discourse.

I read all the thread about this and didn’t find any solution. I have configured “sso overrides avatar” and set avatar\_force\_update to true.

Here is the weired thing. First of all both my website and discourse are public with public ip / DNS etc not on localhost dev.

When the avatar url is hosted on any other website then mine then the avatar is uploaded / synced without any problem. So my integration code (SSO) is working.

When the avatar url is sent from my own website even if it is the same image that worked just before on another host then the sync just don’t work and the avatar don’t change.

So i think there is something special with my host (Nginx). Maybe the nginx gzip http reponse or something else ? I spend already 4 days trying to find an explanation without success and without any error message in avatar logs with sso logs activated that’s why i am here now.

The only Thread i found which seems to have the same problem is : [Cannot load avatar images from particular sites](https://meta.discourse.org/t/cannot-load-avatar-images-from-particular-sites/71003) but without any solution.

Any help would be apreciated.

Thanks !

---

_[View the full topic](https://meta.discourse.org/t/sso-avatar-sync-not-working-due-to-incorrect-http-head-response/74979)._
