浏览代码

Merge remote branch 'ooflorent/patch-1'

* ooflorent/patch-1:
  Made the profiler toolbar loading an XML HTTP request.
Fabien Potencier 14 年之前
父节点
当前提交
54329387fd
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig

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