File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -164,9 +164,16 @@ export const recreateUserHeaders = (headers: Headers): Headers => {
164
164
const headerLowerCase = header . toLowerCase ( ) ;
165
165
if (
166
166
! headerLowerCase . startsWith ( "upstash-workflow-" ) &&
167
+ // https://vercel.com/docs/edge-network/headers/request-headers#x-vercel-id
167
168
! headerLowerCase . startsWith ( "x-vercel-" ) &&
168
169
! headerLowerCase . startsWith ( "x-forwarded-" ) &&
169
- headerLowerCase !== "cf-connecting-ip"
170
+ // https://blog.cloudflare.com/preventing-request-loops-using-cdn-loop/
171
+ headerLowerCase !== "cf-connecting-ip" &&
172
+ headerLowerCase !== "cdn-loop" &&
173
+ headerLowerCase !== "cf-ew-via" &&
174
+ headerLowerCase !== "cf-ray" &&
175
+ // For Render https://render.com
176
+ headerLowerCase !== "render-proxy-ttl"
170
177
) {
171
178
filteredHeaders . append ( header , value ) ;
172
179
}
You can’t perform that action at this time.
0 commit comments