HaithemMosbahi / ngx-avatar

Universal avatar component for angular 2+ applications makes it possible to fetch / generate avatar from different sources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

403 when fetching avatar from Google (googleusercontent.com)

alexciesielski opened this issue · comments

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!