Skip to main content

How and where should I add my allowed domain(s)?

Guide to add domains

Written by John Edward

Localhost is allowed by default. You don't need to add localhost to your project's allowed-domain list for local development.

Where to add your allowed domains

Enter your allowed domain(s) under the Embed tab in Unlayer Embed Settings.

How to enter a domain

Enter the domain name only, such as example.com. Do not include http://, https://, or slashes (/).

  • Correct: example.com

  • Incorrect: https://example.com or example.com/

Allowed domains and custom-tool scripts are separate

Allowed-domain settings and the browser's ability to load a custom-tool script are separate checks. Allowing a domain does not by itself resolve a malformed script URL, a script-format problem, or a blocked request.

The domain-only format above applies to the allowed-domain list, not to customJS. When loading a custom-tool JavaScript file through customJS, use a complete script URL, including http:// or https:// and the full path to the file, such as http://localhost:3000/tool.js.

If your custom tool isn't showing, follow the custom-tool setup and troubleshooting guide.

Did this answer your question?