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

Example using object URLs to display images is broken because of a CSP error. #28255

Closed
guillaumebrunerie opened this issue Jul 29, 2023 · 1 comment
Labels
closed: duplicate This issue or pull request already exists

Comments

@guillaumebrunerie
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/File_API/Using_files_from_web_applications

What specific section or headline is this issue about?

Example: Using object URLs to display images

What information was incorrect, unhelpful, or incomplete?

The example is supposed to show how to use object URLs to display images, but the images are not displayed because of a Content Security Policy error. I guess it is because the iframe has a different origin, but I don’t know enough about MDN or CSP to know how to fix it.

What did you expect to see?

A working example.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

Click on "Select some files", select an image, and notice that the thumbnail isn’t shown (even though showing a thumbnail is the whole point of the example).

Skärmbild från 2023-07-29 15-47-48

@guillaumebrunerie guillaumebrunerie added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jul 29, 2023
@github-actions github-actions bot added the Content:WebAPI Web API docs label Jul 29, 2023
@Josh-Cena
Copy link
Member

Duplicate of mdn/yari#9360

@Josh-Cena Josh-Cena marked this as a duplicate of mdn/yari#9360 Jul 29, 2023
@Josh-Cena Josh-Cena closed this as not planned Won't fix, can't repro, duplicate, stale Jul 29, 2023
@Josh-Cena Josh-Cena added closed: duplicate This issue or pull request already exists and removed Content:WebAPI Web API docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jul 29, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
closed: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants