lapo-luchini / browser-pinry

This is a Chrome and Firefox Extension to ease adding content to Pinry.
ISC License
29 stars 6 forks source link

Fails to find images on Google Photos ablum #1

Open doug-w opened 6 years ago

doug-w commented 6 years ago

Looking to add images from my own Google Photo album at https://photos.google.com/albums and the UI comes up but no images are seen.

lapo-luchini commented 6 years ago

This chrome extension is calling the official Pinry bookmarklet (/static/js/bookmarklet.js), just the same as if the bookmarklet was called as a bookmarklet, it doesn't directly support (or not support) any website, so you probably should open the bug on the main Pinry repository.

It is still strange because on my personal Pinry install (which is a bit outdated) it is working correctly on Google Photos Albums, so it might either be a regression in Pinry bookmarklet or an improvement to the bookmarklet I don't remember about. As a test, you can try using the bookmarklet from my (outdated) fork of Pinry.

lapo-luchini commented 4 years ago

Something has changed and now I can reproduce the error:

Refused to load the script '(URL)/static/js/bookmarklet.js?8806315570263863' because it violates the following Content Security Policy directive: "script-src 'report-sample' 'nonce-ysoC8JSBkoTEYBloTDg0lQ' 'unsafe-inline'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

I'll have to check into that.