Skip to main content
Nintex Community Menu Bar
Question

Refused to connect to googleapis.com/drive/v2/files cause it violates the Content Security Policy

  • July 11, 2024
  • 3 replies
  • 38 views

Arne-Per
Forum|alt.badge.img+8

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!

3 replies

Forum|alt.badge.img+13

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


Arne-Per
Forum|alt.badge.img+8
  • Author
  • Rookie
  • July 11, 2024

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


Arne-Per
Forum|alt.badge.img+8
  • Author
  • Rookie
  • July 11, 2024