Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Avatar] Support referrer policy in AvatarImage #2772

Merged
merged 3 commits into from
Aug 16, 2024

Conversation

g12i
Copy link
Contributor

@g12i g12i commented Mar 11, 2024

Description

Include referrerPolicy when checking image in useImageLoadingStatus(). Fixes: #1616

In my case the issue occurred with Gmail avatars, served from googleusercontent.com.

image

I added tests which somehow simulate this behaviour. It's hard to add a storybook example without actually using my own image.

@franckdsf
Copy link

Hi,
It looks like crossOrigin isn't spread either.
Is there a way to include it (for COEP webistes that require crossOrigin="anonymous") ?
Thank you :)

@chaance
Copy link
Member

chaance commented Aug 16, 2024

@franckdsf I'm going to merge this as-is. Do you want to open a follow-up PR to address cross-origin issues?

@chaance chaance merged commit 91168c3 into radix-ui:main Aug 16, 2024
5 checks passed
@g12i
Copy link
Contributor Author

g12i commented Aug 20, 2024

HI @chaance, sorry it's been ages since I opened that PR and I didn't notice your update!

@g12i g12i deleted the avatar-referer-policy branch August 26, 2024 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Avatar] Referrer Policy is not respected when loading the image
3 participants