Skip to content

Commit 39345c9

Browse files
committed
fix: ignore cf loop headers
1 parent b108d18 commit 39345c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/workflow-requests.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,10 @@ export const recreateUserHeaders = (headers: Headers): Headers => {
165165
!headerLowerCase.startsWith("upstash-workflow-") &&
166166
!headerLowerCase.startsWith("x-vercel-") &&
167167
!headerLowerCase.startsWith("x-forwarded-") &&
168-
headerLowerCase !== "cf-connecting-ip"
168+
headerLowerCase !== "cf-connecting-ip" &&
169+
headerLowerCase !== "cdn-loop" &&
170+
headerLowerCase !== "cf-ew-via" &&
171+
headerLowerCase !== "cf-ray"
169172
) {
170173
filteredHeaders.append(header, value);
171174
}

0 commit comments

Comments
 (0)