Allowlisting your domain


Domain Allowlist


Before AE Connect can be used on your website, you need to allowlist any domains where AE Connect will be used. For example, if you are installing AE Connect on domain.com and sub.domain.com, you need to allowlist those domains from your AE dashboard.


You can find the domain allowlist by going to your application's Manage page, then clicking Privacy & Permissions and then Permissions.


Test on your own computer


The allowlist checks the domain of the page that asks for the AE Connect framework script, so a page on your own computer needs an allowlisted name too. A page whose domain is not on the allowlist gets an error (HTTP 403) when it asks for the script, and AE Connect does not start.


Important

localhost cannot be added. The dashboard rejects it with the message "localhost is not a valid domain." Use a local hostname instead, as described below.


  1. Choose a local hostname, for example dev.myapp.local or dev.myapp.localhost. Names that end in .local and .localhost are accepted by the allowlist.
  2. Add that hostname to your domain allowlist, using the steps above, and select Save changes. Enter the hostname only, without http:// or a port.
  3. Make the name point to your computer. Many browsers resolve names that end in .localhost to your own computer without any setup (checked in Chrome). For other names, add a line to your hosts file:
    127.0.0.1 dev.myapp.local
    • macOS: /private/etc/hosts. Then run sudo dscacheutil -flushcache and sudo killall -HUP mDNSResponder.
    • Linux: /etc/hosts. Then restart name resolution, for example sudo systemd-resolve --flush-caches.
    • Windows: C:\Windows\System32\drivers\etc\hosts, edited as an administrator. Then run ipconfig /flushdns.
  4. Run your development server and open the page using the hostname, for example http://dev.myapp.localhost:3000. The port does not matter; only the hostname is checked.


If AE Connect does not start, check that the hostname in the address bar is exactly the one on the allowlist, that you saved the allowlist, and that the name points to your computer (ping dev.myapp.local should answer from 127.0.0.1).


Installation


Now that you've allowlisted your domains, it's time to go ahead and install AE Connect. We just use few lines of code to connect your website to your Appreciation Engine dashboard. If you're not comfortable editing web pages or don't have a web developer on hand, let us know. We're happy to help you get set up.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article