From 4e03a27484ff065bfcf4322c797965d55e2ab6b8 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Tue, 20 Feb 2024 09:28:57 +0000 Subject: [PATCH] Bug 1879581 [wpt PR 44503] - Remove unnecessary header for fetch requests, a=testonly Automatic update from web-platform-tests Remove unnecessary header for fetch requests After the change in https://github.com/WICG/attribution-reporting-api/pull/757, the fetch request is now a simple CORS request. Change-Id: If69ae7d225e527da17424eeca5d668bdcb7224a6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5278573 Reviewed-by: Andrew Paseltiner Commit-Queue: Nan Lin Cr-Commit-Position: refs/heads/main{#1258570} -- wpt-commits: 34995a654a558e21ee1fa168db097bc32bebebde wpt-pr: 44503 UltraBlame original commit: 115004c6651aaca896e279fb6b9b0697cd2e3095 --- .../tests/attribution-reporting/resources/helpers.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/testing/web-platform/tests/attribution-reporting/resources/helpers.js b/testing/web-platform/tests/attribution-reporting/resources/helpers.js index 9c1c33390250..41aae9089eb8 100644 --- a/testing/web-platform/tests/attribution-reporting/resources/helpers.js +++ b/testing/web-platform/tests/attribution-reporting/resources/helpers.js @@ -94,7 +94,6 @@ const getFetchParams = (origin, cookie) => { const allowOriginHeader = 'Access-Control-Allow-Origin'; - const allowHeadersHeader = 'Access-Control-Allow-Headers'; if (cookie) { credentials = 'include'; @@ -111,10 +110,6 @@ const getFetchParams = (origin, cookie) => { name: allowOriginHeader, value: '*', }); - headers.push({ - name: allowHeadersHeader, - value: '*', - }) } return {credentials, headers}; };