logger = $logger; } public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { $this->logger->info('YA TUT', ['data' => []]); $response = $handler->handle($request); $response = $response->withHeader('Access-Control-Allow-Origin', '*'); $response = $response->withHeader('Connection', 'keep-alive'); $response = $response->withHeader('Content-Type', 'application/json'); $response = $response->withHeader('Access-Control-Allow-Credential', 'true'); return $response; } }