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;
        }
    }
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;
        }
    }
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 ; } }
Set the access-control-allow-origin header.

@param string $origin The origin to allow.

@return void
Set the access - control - allow - origin header .