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

🐛 Bug Report: GIF blocked by CSP #852

Open
climbTheStairs opened this issue Aug 19, 2023 · 0 comments
Open

🐛 Bug Report: GIF blocked by CSP #852

climbTheStairs opened this issue Aug 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@climbTheStairs
Copy link

Describe the bug

GIFs in comments are blocked the page's Content Security Policy, and a broken image is shown in its place.

Steps to reproduce the bug

  1. Go to https://libreddit.domain.glass/r/linuxmemes/comments/rox3y0/comment/hq2h87f/ (example)

The GIF embedded in the highlighted comment is not loaded.

Screenshot of libreddit with red circle around broken image

Error in (Firefox) console:

Content-Security-Policy: The page’s settings blocked the loading of a resource at https://www.redditstatic.com/marketplace-assets/v1/core/emotes/snoomoji_emotes/free_emotes_pack/shrug.gif (“img-src”).

What's the expected behavior?

One of the following:

  • The GIF is proxied through libreddit
  • An error message that this feature is unsupported is shown instead of only a broken image
  • The request is allowed by the CSP and the GIF is shown as is (not private)

Additional context

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