JS userscript Refused to connect because it violates the following content security policy directive [duplicate]

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?