From 2f855afaa082d49b96deca305dadcf42f47a8ab2 Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Thu, 29 Aug 2024 10:43:01 -0400 Subject: [PATCH] Send a UserAgent header to the symbolication server that identifies this request as coming from the Firefox Profiler. --- src/actions/receive-profile.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/actions/receive-profile.js b/src/actions/receive-profile.js index 96343bb781..7b81b9175c 100644 --- a/src/actions/receive-profile.js +++ b/src/actions/receive-profile.js @@ -914,6 +914,11 @@ function getSymbolStore( body: json, method: 'POST', mode: 'cors', + // Use a profiler-specific user agent, so that the symbolication server knows + // what's making this request. + headers: new Headers({ + 'User-Agent': `FirefoxProfiler/1.0 (+${location.origin})`, + }), }); return response.json(); }