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.
- Choose a local hostname, for example
dev.myapp.localordev.myapp.localhost. Names that end in.localand.localhostare accepted by the allowlist. - Add that hostname to your domain allowlist, using the steps above, and select Save changes. Enter the hostname only, without
http://or a port. - Make the name point to your computer. Many browsers resolve names that end in
.localhostto 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 runsudo dscacheutil -flushcacheandsudo killall -HUP mDNSResponder. - Linux:
/etc/hosts. Then restart name resolution, for examplesudo systemd-resolve --flush-caches. - Windows:
C:\Windows\System32\drivers\etc\hosts, edited as an administrator. Then runipconfig /flushdns.
- macOS:
- 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
Feedback sent
We appreciate your effort and will try to fix the article