Added a `trustedDomains` config value and a `copy-error` event