1

In the official docs is said

If your add-on functionality demands it, you can use a * character as wildcard in the whitelist.

I have tried multiple ways to define it with no luck. Could somebody show a simple example how it can be done?

Link to a problem I have related to this topic

vzhemevko
  • 815
  • 8
  • 25

1 Answers1

1

You can't use wildcards.

You need a complete domain or don't use Whitelist at all (is not recommended).

This part of documentation explains:

Whitelisting URLs

The prefixes you add to the manifest must satisfy the following requirements:

Each prefix must have a full domain.

  • Thanks, It seems like the documentation got updated. Previously, the following statement "If your add-on functionality demands it, you can use a * character as wildcard in the whitelist." was present for both urlFetchWhitelist and openLinkUrlPrefixes in this doc https://developers.google.com/gmail/add-ons/how-tos/publish Currently, you can apply the wildcard only for openLinkUrlPrefixes like this "openLinkUrlPrefixes": [ "*" – vzhemevko Apr 26 '18 at 12:18