Skip to content

Commit

Permalink
fix: Don't set referrerPolicy on serverside fetch transports (#9200)
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst authored Oct 11, 2023
1 parent 729e432 commit 49572bd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/bun/src/transports/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export function makeFetchTransport(options: BunTransportOptions): Transport {
const requestOptions: RequestInit = {
body: request.body,
method: 'POST',
referrerPolicy: 'origin',
headers: options.headers,
};

Expand Down
1 change: 0 additions & 1 deletion packages/vercel-edge/src/transports/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export function makeEdgeTransport(options: VercelEdgeTransportOptions): Transpor
const requestOptions: RequestInit = {
body: request.body,
method: 'POST',
referrerPolicy: 'origin',
headers: options.headers,
...options.fetchOptions,
};
Expand Down
1 change: 0 additions & 1 deletion packages/vercel-edge/test/transports/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ describe('Edge Transport', () => {
expect(mockFetch).toHaveBeenLastCalledWith(DEFAULT_EDGE_TRANSPORT_OPTIONS.url, {
body: serializeEnvelope(ERROR_ENVELOPE, new TextEncoder()),
method: 'POST',
referrerPolicy: 'origin',
});
});

Expand Down

0 comments on commit 49572bd

Please sign in to comment.