Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix excessive requests to Google on initialisation (#3218)
### Purpose When a user logs in with google, requests for the Avatar occasionally fail. After investigation, the issue seems to be caused by Google's API enforcing stricter restrictions on the Referer header. By adding the directive referrerpolicy="no-referrer", these restrictions can be bypassed. Source: https://stackoverflow.com/questions/40570117/http403-forbidden-error-when-trying-to-load-img-src-with-google-profile-pic ### Changes When requesting a Google avatar, add referrerpolicy="no-referrer". --------- Co-authored-by: Texera <[email protected]> Co-authored-by: shenghao fu <[email protected]> Co-authored-by: GspikeHalo <[email protected]>
- Loading branch information