Is it possible to whitelist URL including all its suffixes in Gmail extension's manifest?

170 Views Asked by At

I'm developing a Google Workspace extension for Gmail which makes requests to backend API and fetches images from different CDN servers. Therefore it is not possible to include every possible URL in urlFetchWhitelist property of the manifest. Is it possible to add only the server's hostname and use some kind of wildcard to include all of its possible suffixes?

1

There are 1 best solutions below

2
On BEST ANSWER

Wildcards are supported in urlFetchWhitelist, but they are limited to sub-domains.

See documentation linked below:

https://developers.google.com/apps-script/add-ons/concepts/workspace-manifests#allowlist_urls