Skip to content

Commit 6439347

Browse files
authoredJan 9, 2025··
Remove CF-Connecting-IP for requests to the edge preview (#7712)
* Remove CF-Connecting-IP for requests to the edge preview * Create honest-pillows-tease.md
1 parent 28f0154 commit 6439347

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
 

‎.changeset/honest-pillows-tease.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
Remove CF-Connecting-IP for requests to the edge preview

‎packages/wrangler/src/api/startDevWorker/RemoteRuntimeController.ts

+3
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ export class RemoteRuntimeController extends RuntimeController {
267267
...(accessToken
268268
? { Cookie: `CF_Authorization=${accessToken}` }
269269
: {}),
270+
// Make sure we don't pass on CF-Connecting-IP to the remote edgeworker instance
271+
// Without this line, remote previews will fail with `DNS points to prohibited IP`
272+
"cf-connecting-ip": "",
270273
},
271274
liveReload: config.dev.liveReload,
272275
proxyLogsToController: true,

0 commit comments

Comments
 (0)
Please sign in to comment.