是否可以将 URL 列入白名单,包括 Gmail 扩展程序清单中的所有后缀?

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

我正在为 Gmail 开发一个 Google Workspace 扩展,它向后端 API 发出请求并从不同的 CDN 服务器获取图像。因此不可能在清单的 urlFetchWhitelist 属性 中包含所有可能的 URL。是否可以仅添加服务器的主机名并使用某种通配符来包含其所有可能的后缀?

urlFetchWhitelist 支持通配符,但仅限于 sub-domains。

参见下面链接的文档:

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