I am trying to integrate paypal express checkout into my lightning community website.

I included the following line in my lightning component to load the javascript

<ltng:require scripts="https://www.paypalobjects.com/api/checkout.js" afterScriptsLoaded="{!c.scriptsLoaded}"/>

However, there appears to be a problem loading the script. scriptsLoaded() function in my controller never get called.

I see the following error in the browser console on page load.

Refused to connect to 'https://www.paypalobjects.com/api/checkout.js' because it violates the following Content Security Policy directive: "connect-src 'self' https://api.bluetail.salesforce.com https://staging.bluetail.salesforce.com https://preprod.bluetail.salesforce.com *.cs43.visual.force.com".

Note: i already added "'https://www.paypalobjects.com" to the remote site settings

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.