0

I am writing a tampermonkey script in JS that fetches data from google sheets.

 const url = 'https://docs.google.com/spreadsheets/d/...';
    await fetch(url)
    .then(res => res.text())
    .then(rep =>{
        data = JSON.parse(rep.substr(47).slice(0,-2));
        console.log(data);

I am getting the following error

Refused to connect to 'https://docs.google.com/spreadsheets/d/...' because it violates the following Content Security Policy directive: "connect-src 'self'

How do I fix this?

VLAZ
  • 22,934
  • 9
  • 44
  • 60
Shishir
  • 3
  • 3

0 Answers0