You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,14 @@ Sometimes you want to have control when enable or disable PHP Debug Bar:
36
36
We allow you to disable attaching phpdebugbar using `X-Enable-Debug-Bar: false` header, cookie or request attribute.
37
37
To force enable just send request with `X-Enable-Debug-Bar` header, cookie or request attribute with `true` value.
38
38
39
+
### AJAX requests
40
+
41
+
Requests sent with `X-Requested-With: XMLHttpRequest` are attached to the debug bar
42
+
already initialized by the main request: the middleware appends only the collected data
43
+
of the AJAX request (rendered as a `(ajax)` dataset) instead of the initialization code
44
+
and assets. Without it every AJAX response would create another debug bar on top of the
45
+
existing one.
46
+
39
47
### PSR-17
40
48
41
49
This package isn't require any PSR-7 implementation - you need to provide it by own. Middleware require ResponseFactory and StreamFactory interfaces. [List of existing interfaces](https://packagist.org/providers/psr/http-factory-implementation).
0 commit comments