diff --git a/Configuration/RequestMiddlewares.php b/Configuration/RequestMiddlewares.php index 51de257ae7..f7ddb659eb 100644 --- a/Configuration/RequestMiddlewares.php +++ b/Configuration/RequestMiddlewares.php @@ -11,10 +11,12 @@ */ return [ - 'frontend' => [ + 'backend' => [ 'dlf/page-view-proxy' => [ 'target' => \Kitodo\Dlf\Middleware\PageViewProxy::class, ], + ], + 'frontend' => [ 'dlf/search-in-document' => [ 'target' => \Kitodo\Dlf\Middleware\SearchInDocument::class, 'after' => [ diff --git a/Tests/Functional/Api/PageViewProxyTest.php b/Tests/Functional/Api/PageViewProxyTest.php index a0c58e4f66..50d372683d 100644 --- a/Tests/Functional/Api/PageViewProxyTest.php +++ b/Tests/Functional/Api/PageViewProxyTest.php @@ -34,7 +34,8 @@ public function cannotAccessFileUrl(): void $response = $this->queryProxy([ 'url' => 'file:///etc/passwd', ]); - + var_dump($response); + ob_flush(); $this->assertEquals(400, $response->getStatusCode()); }