diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig index f86239d6101b..dc3b4cd62ec7 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig @@ -9,6 +9,7 @@ xhr = new ActiveXObject('Microsoft.XMLHTTP'); } xhr.open('GET', '{{ path("_wdt", { "token": token }) }}', false); + xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); xhr.send(''); wdt.innerHTML = xhr.responseText; wdt.style.display = 'block';