Quellcode durchsuchen

Made the profiler toolbar loading an XML HTTP request.

Florent Cailhol vor 14 Jahren
Ursprung
Commit
f052d2d439

+ 1 - 0
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';