VScode screenshot of modified SDKI am building a chrome extension using flutter web. My extension has a sign in with google button. it works on a deployed website. But as a chrome extension it fails as I am not able to load externals scripts in manifest v3. It is because this url is being blocked https://accounts.google.com/gsi/client.
I have tried downloading the contents of https://accounts.google.com/gsi/client to my local folder as “google_sso.js” and importing it via tag in my index.html. Do I need to modify code within the pub.dev SDK to get this to work? I tried all options with loosening security to allow external scripts, but it’s not working.
I attached a picture of some workaround I am attempting. I’ll appreciate any guidance you can give me.
I import it like this inside my index.html
Sri Kanipakala is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.