src/Http/Middleware/Cors.php
private static function withCorsHeaders(ResponseInterface $response, array $headers): ResponseInterface
	{
		foreach ($headers as $name => $value) {
			$response = $response->withHeader($name, $value);
		}

		return $response;
	}
private static function withCorsHeaders(ResponseInterface $response, array $headers): ResponseInterface
	{
		foreach ($headers as $name => $value) {
			$response = $response->withHeader($name, $value);
		}

		return $response;
	}
private static function withCorsHeaders ( ResponseInterface $ response , array $ headers ) : ResponseInterface { foreach ( $ headers as $ name => $ value ) { $ response = $ response -> withHeader ( $ name , $ value ) ; } return $ response ; }
Adds cors headers to the response.

@param ResponseInterface $response
@param array             $headers

@return ResponseInterface
Adds cors headers to the response .