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

Content-Security-Policy blocks blob requests required for Google Motion Pictures images #1942

Closed
Merlyn42 opened this issue Jul 18, 2023 · 0 comments · Fixed by #1943
Closed

Comments

@Merlyn42
Copy link
Contributor

Detailed description of the problem [REQUIRED]

When opening a "live" image i.e. a Google Motion Picture with an embedded video stream I received a console error
Content-Security-Policy: The page’s settings blocked the loading of a resource at blob:https://xxx.com/48d5c8e8-8bac-43af-92d0-b13eda3f6eb6 (“media-src”)

Steps to reproduce the issue

Upload a motion photo directly from a Samsung phone
The photo will have the "Live" icon on the thumbnail.
Open the browser console.
Click on the image thumbnail
Observe errors in console

ildyria pushed a commit that referenced this issue Jul 22, 2023
…r Google Motion Pictures images" (#1943)

Live photos make "blob:" requests, currently that results in an error:
Content-Security-Policy: The page’s settings blocked the loading of a resource at blob:https://xxx.com/48d5c8e8-8bac-43af-92d0-b13eda3f6eb6 (“media-src”).
and
Content-Security-Policy: The page’s settings blocked the loading of a resource at blob:https://xxx.com/f8d5c8e8-8bac-43af-92d0-b13eda3f6eb6 (“img-src”).

This change fixes that
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant