HaithemMosbahi / ngx-avatar

Universal avatar component for angular 2+ applications makes it possible to fetch / generate avatar from different sources
MIT License
236 stars 91 forks source link

403 when fetching avatar from Google (googleusercontent.com) #149

Open alexciesielski opened 2 years ago

alexciesielski commented 2 years ago

Hey,

sporadically I am getting 403 errors when fetching avatars from Google.

The solution is to add a referrerpolicy to the img tag.

https://stackoverflow.com/questions/40570117/http403-forbidden-error-when-trying-to-load-img-src-with-google-profile-pic/61042200#61042200

https://community.auth0.com/t/google-account-picture-request-forbidden/42031/15

Any possibility to give us the ability to configure this? Or just always add the above referrerpolicy whenever we request a Google image?

Thanks!