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

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

        return $this->cors->getResponse();
    }
public function handle ( ServerRequestInterface $ request , ResponseInterface $ response ) : ResponseInterface { $ type = 'psr-7' ; $ this -> cors -> setRequest ( $ type , $ request ) ; $ this -> cors -> setResponse ( $ type , $ response ) ; $ this -> cors -> handle ( ) ; return $ this -> cors -> getResponse ( ) ; }
Process cors headers.

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

@return \Psr\Http\Message\ResponseInterface
Process cors headers .