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

[Issue] Discord Widget - CORS Errors #914

Closed
DysektAI opened this issue Apr 6, 2024 · 0 comments
Closed

[Issue] Discord Widget - CORS Errors #914

DysektAI opened this issue Apr 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@DysektAI
Copy link
Contributor

DysektAI commented Apr 6, 2024

Issue

When the discord iFrame is loaded into the page it throws multiple errors in the console:
Access to image at 'https://cdn.discordapp.com/widget-avatars/' from origin 'https://discord.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I thought this was a bit odd so I checked what was causing it and realized for example this is one of the files being blocked:

Then I realized all of the errors include "default discord avatars" just different colors but any discord profile picture that is not set to a default avatar does not throw the error...

To test I then blocked the "discord iFrame" with ublock origin using cosmetic filters.. And no errors from discord anymore just the normal client blocked errors for trackers.

Expected Behavior

Discord Widget load without errors in the console

To Reproduce

Go to any page that has the footer and check console logs. Consistent across all browsers and platforms, it's an issue with the discord widget when fetching the default avatars they are missing a "Access-Control-Allow-Origin header" when its expected?
Footer Github Link

@DysektAI DysektAI added the bug Something isn't working label Apr 6, 2024
@DysektAI DysektAI changed the title Discord iFrame CORS Errors [Issue] Discord Widget - CORS Errors Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant