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

logo_url fails to load #31

Open
zlipa opened this issue Aug 19, 2020 · 6 comments
Open

logo_url fails to load #31

zlipa opened this issue Aug 19, 2020 · 6 comments

Comments

@zlipa
Copy link

zlipa commented Aug 19, 2020

(X-CC-Version: 2018-03-22)

When using a custom logo_url the image fails to load throwing the following error:

Refused to load the image 'https://[edited].com/image.jpg' because it violates the following Content Security Policy directive: "img-src 'self' data: https://exceptions.coinbase.com/js https://res.cloudinary.com https://www.google-analytics.com/ https://images.coinbase.com".

The domain is whitelisted in the account settings, so not sure what's the problem. I guess the Content-Security-Policy has to be relaxed?

@zlipa zlipa changed the title requested_info and logo_url ignored Please delete Aug 24, 2020
@zlipa zlipa closed this as completed Aug 24, 2020
@zlipa zlipa changed the title Please delete logo_url fails to load Aug 24, 2020
@zlipa zlipa reopened this Aug 24, 2020
@babacarcissedia
Copy link

This is important indeed. @zlipa did you get around this ?

@zlipa
Copy link
Author

zlipa commented Apr 21, 2021

Nope :\

@Mike-E-angelo
Copy link

Has this API seriously not been updated since 2018? 😟

@babacarcissedia
Copy link

@Mike-E-angelo it feels like it. Maybe you can find a community implementation or perhaps build yours.

@Mike-E-angelo
Copy link

@bcdbuddy to be sure I was referencing the server-side API where the version states it is from 2018. That is, when no X-CC-Version header is applied to requests, the following warning is emitted: Missing X-CC-Version header; serving latest API version (2018-03-22)

FWIW I am working with the unofficial C# version found here: https://github.com/bchavez/Coinbase.Commerce

FWIWx2: I have been spending the past day or so racking my brain around checkouts and charges, and trying to reconcile why charges made by checkouts are different, and cannot be made directly by the API. The only way to do so is to visit the checkout URL directly with a web client (and not via API).

Anyways, as noted in my other issue I think I have that figured out. So onto the next fire.

Speaking of which. 😁 As for this issue here. You might try to upload your image in the Branding image setting in your account. Then, you can visit a hosted checkout/charge from your account where you should see it. If you right-click the image and explore its properties, it should be a cloudinary.com address. Copy that URL and use that for your charge.logo_url property. Then go back to your account settings and re-upload your previous branding image to restore it. I am pretty sure the previous cloudinary.com one should still be there for you and you should be able to work around the content security policy in the short term.

@kcinnxy
Copy link

kcinnxy commented Apr 13, 2022

Legend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants