diff --git a/Classes/Http/RestMiddleware.php b/Classes/Http/RestMiddleware.php index af89961d..2e2917e7 100644 --- a/Classes/Http/RestMiddleware.php +++ b/Classes/Http/RestMiddleware.php @@ -19,6 +19,7 @@ class RestMiddleware implements MiddlewareInterface public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { if ($this->isRestRequest($request)) { + $GLOBALS['TYPO3_REQUEST'] = $request; $middlewareBootstrap = new MiddlewareBootstrap(); $frontendController = $middlewareBootstrap->bootstrapCore($request); $languageEnhancedRequest = $middlewareBootstrap->bootstrapLanguage($frontendController, $request);