Manage Allowed Hosts
This page outlines how to manage the Allowed Hosts for a Factorial Form. Allowed Hosts control which domains may host and run your form. When a browser loads a form from a domain, that domain must be listed in the form's allowed hosts, otherwise the form is rejected for security reasons.
Allowed hosts can be managed at two levels:
- Configuration level — the hosts stored in the form definition itself (the artifact that is published and deployed).
- Environment level — an override that applies to a deployed form in a specific NPO Environment, without changing the form definition.
Important
Whenever you update the allowed hosts — at configuration level or environment level — you must generate a new web snippet (Link to Host → Generate Code) and redeploy/update the snippet on your website.
Configuration-Level Allowed Hosts
The configuration-level allowed hosts are the hosts embedded in the form definition. These are the default hosts that apply everywhere the form is deployed (unless an environment-level override is active).
- Navigate to the ProcessFactorial Portal, open your NPO Customer, then your NPO Project.
- On the Factorial Form tab, select your form and click
Edit(or select the form and use the edit drawer when configuring the draft form). - Scroll to the Allowed Hosts section.
- Each row is a single allowed host URL. Use the add (
+) button to add another row and the delete button to remove a row. - Save/Close the form editing drawer.
These hosts are carried into the form when it is published and deployed.
Environment-Level Allowed Hosts (Override)
Once a form has been deployed to an environment, you can override the allowed hosts for that environment only. While the override is enabled, these hosts are the master for the form in that environment — subsequent deployments or imports of the same form use the override hosts instead of the hosts embedded in the artifact.
- Navigate to the ProcessFactorial Portal, open your NPO Customer, then your NPO Project.
- Select an NPO Environment and open the environment.
- Select the deployed form in the forms list.
- From the toolbar click the Allowed Hosts button. A drawer opens titled
Allowed Hosts (this environment). - Toggle Enable Environment Override to activate the override for this form in this environment.
-
Enter the allowed host URLs, one per row. Use the add (
+) button to add another row and the delete button to remove a row.Note
You cannot enable an override with an empty host list — at least one valid host URL is required.
-
Click
Save.
When the override is disabled, the form falls back to the hosts embedded in the artifact immediately — no redeployment is required.
Regenerating the Web Snippet
Because the allowed hosts are baked into the demToken of the web snippet when the snippet is generated, any change to the allowed hosts (at either level) requires you to generate a new web snippet and update your website with it.
- From the forms list, select the form.
- From the toolbar/grid ribbon, click Link to Host.
- Choose your hosting platform and click Generate Code.
- Copy the generated Code Snippet and replace the old snippet on your website with the new one.
Until you regenerate the snippet, pages that already have the old snippet embedded will continue to carry the previously generated demToken (with the earlier allowed hosts). Live sessions keep the hosts from their existing token until the page is reloaded with a regenerated snippet.
Further Reading
- Expose your Journey — how to link a form to a host and obtain the web snippet.
- Link to Environment — how environments are linked to a project.