Symfony 8.2 Profiler Adds Better Security, HTTP and Accessibility Tools
- Javier Eguiluz
- 926 reads
Symfony 8.2 explains skipped authentication and logouts, surfaces HTTP request costs, captures early AJAX calls and improves profiler accessibility.

Symfony 8.2 makes the profiler more useful for tracing authentication failures and measuring HTTP activity. It also catches AJAX calls made early in page loading, lets teams filter noisy requests, and improves keyboard and screen reader support. The changes focus on making existing debugging data easier to find and act on.

Security panels explain authentication outcomes
When a firewall has several authenticators, the profiler already shows which ones handled a request. Previously, for an authenticator that declined it, the panel offered little more than “This authenticator did not support the request.” That left developers to inspect conditions themselves, such as whether a JSON login request had the expected Content-Type header or a form had been submitted to the right path.
In 8.2, built-in authenticators report why they skipped a request. Authenticators extending AbstractLoginFormAuthenticator do so as well. Custom authenticators can add a reason to the request’s SecurityRequestAttributes::UNSUPPORTED_REASONS collection before returning false from supports(). For example, a tenant authenticator can explain that the X-Tenant header is missing. This request attribute exists only while the profiler collects data, so the nullsafe call has no effect in production.


The profiler also clarifies a different security case: a user who is deauthenticated after Symfony reloads their session at the start of a request. If the user has changed, for example through a password or role update, Symfony can invalidate the session’s security token. The panel now shows who was deauthenticated and the reason, where previously it could show only that no security token was present.

The same details are available through TokenDeauthenticatedEvent, which now provides getReason() and getProviderClasses(). Applications can use these methods to log unexpected logouts, including the user identifier, reason and user providers that detected the change. That gives teams a way to investigate the event outside the profiler too.

HTTP request timing and transfer sizes are easier to scan
Symfony’s HttpClient component collected response duration and transfer size before this release, but those details were tucked into each response’s collapsed info dump. In 8.2, the HTTP Client panel puts duration and uploaded and downloaded sizes next to each response’s status code. A new “Total time” metric appears in both the panel and the web debug toolbar.

The total is the sum of the durations of all requests. Concurrent requests count in full, so the displayed figure can exceed the time the application actually spent waiting for requests to finish. Treat it as a view of request activity, not necessarily as the page’s elapsed waiting time. Showing individual durations and transfer sizes directly should make it quicker to spot which outgoing calls deserve investigation.

Early AJAX calls appear in the toolbar
The web debug toolbar can link to profiles for AJAX requests made by a page, but it used to miss requests that began before the toolbar’s tracking code was ready. That can happen when page scripts call fetch() or XMLHttpRequest while the page is loading.
Symfony 8.2 injects the tracking code before the page’s first script, allowing the toolbar to list those early requests along with their profile, method, type, status, URL and timing. The change applies to regular responses; streamed responses keep the previous behavior.

Filter profiler noise by path and response code
Health checks, monitoring probes, favicon.ico and repeated requests for /.well-known/ files can clutter profiler data. Symfony 8.2 adds excluded_paths and excluded_http_codes options so teams can filter requests by URL path, response status, or both. For example, configuration can omit all 404 responses, or omit 400 responses only for paths under /api and /webhooks.
Path patterns are regular expressions without delimiters. They’re case-sensitive and matched against the URL-decoded request path. Symfony excludes nothing by default, while the recipe for new applications already omits /.well-known/ and /favicon.ico in the dev environment. Teams with existing projects can add equivalent rules where profiler noise is a problem.
Profiler panels work better with keyboards and screen readers
The accessibility updates affect navigation and interaction across the profiler. Tabs follow the ARIA tabs pattern: arrow keys move between tabs, the tab group uses a single stop in keyboard navigation, and disabled tabs are announced as unavailable. Icon-only controls, such as expand and collapse toggles, are now focusable buttons with accessible names and an exposed expanded state.
The Forms panel’s field tree follows the ARIA tree view pattern. Up and down arrows move between fields; left and right arrows collapse or expand them; Home and End move to the first and last field; and Enter or Space selects a field.

Together, these changes make the profiler more informative at the points where developers diagnose a request: why authentication was skipped or a session was invalidated, what outgoing calls cost, and which early browser requests ran. Teams adopting 8.2 can also add custom skip explanations and request filters; the accessibility improvements are built into the panels.