diff --git a/profiler.rst b/profiler.rst index cdeeae19649..6d9dafe60d8 100644 --- a/profiler.rst +++ b/profiler.rst @@ -206,6 +206,11 @@ event:: if (!$this->getKernel()->isDebug()) { return; } + + $request = $event->getRequest(); + if (!$request->isXmlHttpRequest()) { + return; + } $response = $event->getResponse(); $response->headers->set('Symfony-Debug-Toolbar-Replace', 1);