summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/attribution-reporting/resources/helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/attribution-reporting/resources/helpers.js')
-rw-r--r--testing/web-platform/tests/attribution-reporting/resources/helpers.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/web-platform/tests/attribution-reporting/resources/helpers.js b/testing/web-platform/tests/attribution-reporting/resources/helpers.js
index 5778159d4c..e5c749931e 100644
--- a/testing/web-platform/tests/attribution-reporting/resources/helpers.js
+++ b/testing/web-platform/tests/attribution-reporting/resources/helpers.js
@@ -170,6 +170,7 @@ const registerAttributionSrc = async ({
method = 'img',
extraQueryParams = {},
reportingOrigin,
+ extraHeaders = [],
}) => {
const searchParams = new URLSearchParams(location.search);
@@ -208,6 +209,8 @@ const registerAttributionSrc = async ({
headers = headers.concat(params.headers);
}
+ headers = headers.concat(extraHeaders);
+
const url = blankURLWithHeaders(headers, reportingOrigin);
Object.entries(extraQueryParams)