private function getAllowedRedirectHosts()
    {
        $ini = eZINI::instance();
        $allowedHosts = array_fill_keys( $ini->variable( 'SiteSettings', 'AllowedRedirectHosts' ), true );
        // Adding HostMatchMapItems from siteaccess match if present
        if ( $ini->hasVariable( 'SiteAccessSettings', 'HostMatchMapItems' ) )
        {
            $hostMatchMapItems = $ini->variable( 'SiteAccessSettings', 'HostMatchMapItems' );
            foreach ( $hostMatchMapItems as $item )
            {
                list( $host, $sa ) = explode( ';', $item );
                $allowedHosts[$host] = true;
            }
        }

        // Adding HostUriMatchMapItems
        foreach ( $ini->variable( 'SiteAccessSettings', 'HostUriMatchMapItems' ) as $item )
        {
            list( $host, $uri, $sa ) = explode( ';', $item );
            $allowedHosts[$host] = true;
        }

        return $allowedHosts;
    }