protected function handle(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface
    {
        $cors = $this->cors->getCors();
        $cors->setRequest('psr-7', $request);
        $cors->setResponse('psr-7', $response);
        $cors->handle();

        return $cors->getResponse();
    }
protected function handle(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface
    {
        $cors = $this->cors->getCors();
        $cors->setRequest('psr-7', $request);
        $cors->setResponse('psr-7', $response);
        $cors->handle();

        return $cors->getResponse();
    }
protected function handle ( ServerRequestInterface $ request , ResponseInterface $ response ) : ResponseInterface { $ cors = $ this -> cors -> getCors ( ) ; $ cors -> setRequest ( 'psr-7' , $ request ) ; $ cors -> setResponse ( 'psr-7' , $ response ) ; $ cors -> handle ( ) ; return $ cors -> getResponse ( ) ; }
The cors handle.

@param \Psr\Http\Message\ServerRequestInterface $request
@param \Psr\Http\Message\ResponseInterface      $response

@return \Psr\Http\Message\ResponseInterface
The cors handle .