Skip to content

Commit

Permalink
fix: ignore cf loop headers
Browse files Browse the repository at this point in the history
  • Loading branch information
CahidArda committed Nov 26, 2024
1 parent b108d18 commit 39345c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/workflow-requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ export const recreateUserHeaders = (headers: Headers): Headers => {
!headerLowerCase.startsWith("upstash-workflow-") &&
!headerLowerCase.startsWith("x-vercel-") &&
!headerLowerCase.startsWith("x-forwarded-") &&
headerLowerCase !== "cf-connecting-ip"
headerLowerCase !== "cf-connecting-ip" &&
headerLowerCase !== "cdn-loop" &&
headerLowerCase !== "cf-ew-via" &&
headerLowerCase !== "cf-ray"
) {
filteredHeaders.append(header, value);
}
Expand Down

0 comments on commit 39345c9

Please sign in to comment.