Skip to main content
Admin

Allowed domains

Collector records every web page a project's events come from, and asks its admins whether it's theirs. Since the DSN's key is public (it goes in browser code), this is what stops another site from sending errors to your project. The list is in the Domains section of the Project settings.

The statuses​

StatusWhat happens to its events
pendingThey're kept. Every new domain starts here, until someone confirms it.
allowedThey're kept. Someone confirmed it's your site.
blockedThey're refused, from the moment it was blocked.

A pending domain and an allowed one work the same; the difference is that someone confirmed it.

When a new one shows up​

When the first event from a new domain arrives, Collector emails the owners and admins, and the project says so at the top of its screens. From there, or from Domains:

  • Allow confirms it.
  • Block refuses its events from then on.
  • Remove forgets it: if it sends events again, it shows up as pending once more.

The changes go into the audit log.

What it doesn't cover​

Events sent by servers carry no domain: they're never recorded or blocked. If someone got your DSN and sends events from a server, rotate the DSN.

From the terminal​

collector origins list
collector origins allow shop.example.com # with no scheme it's https://
collector origins block http://localhost:3000
collector origins forget https://old.example.com