settings/Controller/SecuritySettingsController.php
/**
	 * Add a new trusted domain
	 * @param string $newTrustedDomain The newly to add trusted domain
	 * @return array
	 */
Add a new trusted domain
@param string $newTrustedDomain The newly to add trusted domain
@return array
Add a new trusted domain @param string $newTrustedDomain The newly to add trusted domain @return array
public function trustedDomains($newTrustedDomain) {
		$trustedDomains = $this->config->getSystemValue('trusted_domains', []);
		$trustedDomains[] = $newTrustedDomain;
		$this->config->setSystemValue('trusted_domains', $trustedDomains);
		return $this->returnSuccess();
	}
public function trustedDomains ( $ newTrustedDomain ) { $ trustedDomains = $ this -> config -> getSystemValue ( 'trusted_domains' , [ ] ) ; $ trustedDomains [ ] = $ newTrustedDomain ; $ this -> config -> setSystemValue ( 'trusted_domains' , $ trustedDomains ) ; return $ this -> returnSuccess ( ) ; }
Add a new trusted domain
 @param string $newTrustedDomain The newly to add trusted domain
 @return array
Add a new trusted domain @param string $newTrustedDomain The newly to add trusted domain @return array