Grist Desktop on Windows using WebHooks

I’m trying to use webhooks on grist-desktop for windows.

The errors being received indicate “Incomplete | Provided URL is forbidden”

The documentation suggests placing .env file in the root directory or using a config file?

The paths for the For Windows the default location is %APPDATA%\Grist Desktop

But where are the environment variables set? in a .env file placed in the directory of the exe? in the default location? where is the config file?

is the “ALLOWED_WEBHOOK_DOMAINS” used in the desktop version on windows?

any help would help be appreciated in getting web hooks setup

Hi Shawn,

Yes, ALLOWED_WEBHOOK_DOMAINS works in Grist Desktop the same way it does in grist-core. Desktop runs a Grist server in the background, and that server reads its settings from environment variables. Grist Desktop has no separate config file.

The simplest way to set it on Windows is a user environment variable:

  1. Open Start → “Edit environment variables for your account”.
  2. Add a new variable named ALLOWED_WEBHOOK_DOMAINS. Set its value to a comma-separated list of domains, for example webhook.site, hooks.zapier.com.
  3. Quit Grist Desktop completely and start it again. It only reads environment variables at startup.

You can also do this from a command prompt with setx ALLOWED_WEBHOOK_DOMAINS “webhook.site,hooks.zapier.com”, then restart Grist.