public function setAllowOrigin($origin): void
    {
        $origin = trim($origin);
        // fixme - send catchable error if origin isn't valid
        //  possibly could check with filter_var
        if (strlen($origin) > 0) {
            $this->allowOrigin = $origin;
        }
    }