I'm trying to build a chrome extension which should highlight certain things on the page if they appear in a user's google sheet.
When trying to initialize gapi object in the background script, I'm getting gapi.auth2.ExternallyVisibleError: Invalid cookiePolicy
. When searching or this error i didn't really find a solution for my case (including this one).
I wanted to load the sheet into memory just once using gapi in the background script, and not do this in every tab (content script).
I also found several posts which mentioned that gapi and OAuth2 don't work well in chrome extensions, can anyone please explain? Is this a general no-no?