10000 [WebProfilerBundle] Set `XDEBUG_IGNORE` option for all XHR · symfony/symfony@ae07ed0 · GitHub
[go: up one dir, main page]

Skip to content

Commit ae07ed0

Browse files
adrolterfabpot
authored andcommitted
[WebProfilerBundle] Set XDEBUG_IGNORE option for all XHR
1 parent c4e97eb commit ae07ed0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Symfony/Bundle/WebProfilerBundle/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
7.1
5+
---
6+
7+
* Set `XDEBUG_IGNORE` query parameter when sending toolbar XHR
8+
49
6.4
510
---
611

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878
}
7979
8080
var request = function(url, onSuccess, onError, payload, options, tries) {
81+
url = new URL(url);
82+
url.searchParams.set('XDEBUG_IGNORE', '1');
83+
url = url.toString();
8184
var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');
8285
options = options || {};
8386
options.retry = options.retry || false;

0 commit comments

Comments
 (0)
0