Skip to content

Commit

Permalink
Bug 1879581 [wpt PR 44503] - Remove unnecessary header for fetch requ…
Browse files Browse the repository at this point in the history
…ests, a=testonly

Automatic update from web-platform-tests
Remove unnecessary header for fetch requests

After the change in WICG/attribution-reporting-api#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 <apaseltinerchromium.org>
Commit-Queue: Nan Lin <linnanchromium.org>
Cr-Commit-Position: refs/heads/main{#1258570}

--

wpt-commits: 34995a654a558e21ee1fa168db097bc32bebebde
wpt-pr: 44503

UltraBlame original commit: 115004c6651aaca896e279fb6b9b0697cd2e3095
  • Loading branch information
marco-c committed Feb 20, 2024
1 parent 5ab339c commit 4e03a27
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ const getFetchParams = (origin, cookie) => {


const allowOriginHeader = 'Access-Control-Allow-Origin';
const allowHeadersHeader = 'Access-Control-Allow-Headers';

if (cookie) {
credentials = 'include';
Expand All @@ -111,10 +110,6 @@ const getFetchParams = (origin, cookie) => {
name: allowOriginHeader,
value: '*',
});
headers.push({
name: allowHeadersHeader,
value: '*',
})
}
return {credentials, headers};
};
Expand Down

0 comments on commit 4e03a27

Please sign in to comment.