Documentation

Allowed domains

Your API key is part of your web app's code, so anyone can read it in the browser. To stop other websites from using it, limit it to your own domains.

Add allowed domains

Open your account page and add each domain your app runs on under Allowed domains. Changes take effect within a minute.

If the list is empty, every website can use your key. That is the default, so keys keep working until you add a domain.

Once the list has at least one entry, only matching websites get translations. Other websites get the error ORIGIN_NOT_ALLOWED, so their text stays untranslated.

What you can enter

EntryAllows
example.comexample.com on any scheme and port
*.example.comevery subdomain, such as www.example.com or app.example.com, but not example.com itself
my-app-*.vercel.apppreview deployments such as my-app-git-main.vercel.app
https://example.comonly https://example.com
localhost:3000only port 3000 on localhost
localhostlocalhost on any port

* matches any characters. To allow a domain and all its subdomains, add both example.com and *.example.com.

Developing locally

Add localhost to keep using the key while you develop. Otherwise translations stop working on your machine as soon as the list has an entry.

Server-side rendering

React SSR, Next.js and Angular prerendering keep working whatever is on the list.