Hello i'm newbie with Magento 2, I'm integrating visa-checkout button in checkout of magento

Image is printed but i getting an error about Refused to load the image because it violates the following Content Security Policy directive

"img-src 'self' data: *.visa.com *.doubleclick.net cdn.betrad.com l.betrad.com www.google-analytics.com www.google.com maps.gstatic.com cdn.optimizely.com www.staticv.me".

I'm trying to add meta tag in layout


but the same error appears, also i am trying uploading in SSL server but is the same.

enter image description here

This is the error outputed in checkout enter image description here

Anyone have any idea to integrate Visa-checkout in Magento 2?

1 Answer 1


The error is caused by the CSP Module.


To completely disable CSP you can use

bin/magento module:disable Magento_Csp

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.