Skip to main content

Refused to connect to ‘https://www.googleapis.com/drive/v2/files’ because it violates the following Content Security Policy directive: "connect-src ‘self’

Data source: google drive has been working fine when previewed but once it is in a vf page or lightning page then the error generates. 

I know it is a less then ideally formed question, that said…

Any ideas? thanks!

Hey Arne, you need to add the Google APIs domain as a CSP Trusted Site in Salesforce Setup. Make sure the domain is enabled for “connect-src”. Domain should be https://www.googleapis.com


thanks zach. I thought I did that! Doing it now. Will report back. Happy Sunday


https://community.skuid.com/t/error-you-have-been-successfully-authenticated-this-window-should-close-momentarily

finally closed the loop. Lightning definitely makes it interesting


Reply