Hi everyone,
I'm developing a Chrome extension using Manifest V3, and I would like to integrate the Google Picker API to allow users to choose a folder on Google Drive before uploading a file.
However, including the standard script like:
<script src="
https://apis.google.com/js/api.js"></script>
is blocked by the extension’s Content Security Policy (CSP):
Refused to load the script '
https://apis.google.com/js/api.js' because it violates the following Content Security Policy directive: "script-src 'self'"...
I understand that Manifest V3 disallows remote scripts. I’m currently able to use the Drive REST API (e.g., list, upload) through fetch and chrome.identity.getAuthToken, but I would really like to use the visual Google Picker UI.
So the question is:
Is there any supported or recommended way to use Google Picker inside a Manifest V3 Chrome Extension?
Or is it completely incompatible with MV3 due to dynamic loading and CSP restrictions?
Any workaround or guidance would be greatly appreciated.
Thanks in advance!