8000 Made the profiler toolbar loading an XML HTTP request. · lidaa/symfony@f052d2d · GitHub
[go: up one dir, main page]

Skip to content

Commit f052d2d

Browse files
author
Florent Cailhol
committed
Made the profiler toolbar loading an XML HTTP request.
1 parent 923c234 commit f052d2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
xhr = new ActiveXObject('Microsoft.XMLHTTP');
1010
}
1111
xhr.open('GET', '{{ path("_wdt", { "token": token }) }}', false);
12+
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
1213
xhr.send('');
1314
wdt.innerHTML = xhr.responseText;
1415
wdt.style.display = 'block< 37BA span class="pl-pds">';

0 commit comments

Comments
 (0)
0